MySQL TEXT數據類型的最大長度
阿新 • • 發佈:2017-08-11
www hang 內容 就會 最大 imu have chang 類型
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字段也會出現上面的問題。
MySQL TEXT數據類型的最大長度