MySQL TEXT數據類型的最大長度


TINYTEXT 256 bytes  
TEXT 65,535 bytes ~64kb
MEDIUMTEXT  16,777,215 bytes ~16MB
LONGTEXT 4,294,967,295 bytes ~4GB

 

http://blog.sina.com.cn/s/blog_71f8aa010100vusp.html

MySQL多Text字段報8126錯誤(解決過程)

 

Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs

如果增大schedule_remark字段的內容,就會報上面的錯誤。Row size too large。表示行的內容太多了,就是線路220567存儲的內容太多了。后面的You have to change some columns to TEXT or BLOBs具有迷惑性,因為schedule_remark字段的內容並沒有增加到65k(text類型最大是65k),就報上面的錯誤。看來只有縮短文字內容。

Text類型的字段容量也是有限的

新增一個Text字段也會出現上面的問題。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM