Data truncation: Data too long for column '***' at row 1 的解决
2011-10-02 14:35
856 查看
mysql上,在text字段上插入字节数为88399的字符串,出现如下提示:
Data truncation: Data too long for column '***' at row 1
经查,text支持上限是65536bytes(64KB)
下述取自: Maximum
length for MySQL TEXT field types
TINYTEXT: 256 bytes
TEXT: 65,535 bytes => ~64kb
MEDIUMTEXT: 16,777,215 bytes => ~16MB
BIGTEXT: 4,294,967,295 bytes => ~4GB
将原来的字段修改:
alter table tblneighbor modify localmap mediumtext;
Data truncation: Data too long for column '***' at row 1
经查,text支持上限是65536bytes(64KB)
下述取自: Maximum
length for MySQL TEXT field types
TINYTEXT: 256 bytes
TEXT: 65,535 bytes => ~64kb
MEDIUMTEXT: 16,777,215 bytes => ~16MB
BIGTEXT: 4,294,967,295 bytes => ~4GB
将原来的字段修改:
alter table tblneighbor modify localmap mediumtext;
相关文章推荐
- 成功解决data too long for column 'name' at row 1
- 【Hibernate错误解决办法】Could not execute JDBC batch update; Data too long for column 'name' at row 1
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- 解决数据库 data too long for column 'name' at row 1的问题
- Data truncation: Data too long for column 'name' at row 1的处理
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- MySQL字符集 GBK、GB2312、UTF8区别 解决 MYSQL中文乱码问题以及error 1406:data too long for column 'name' at row 1
- 读取MYSQL中文数据乱码,解决data too long for column 'title' at row 1
- 错误:SQL Error: 1406, SQLState: 22001____Data truncation: Data too long for column 'add_user' at row 1
- Data too long for column 'type' at row 1 Query: insert into news
- java.sql.BatchUpdateException: Data truncation: Data too long for column 'site_name' at row 1
- data too long for column 'Auser' at row 1
- java-mysql异常<Data truncation: Data too long for column 'name ' at row 1>讨论
- MySQL插入中文时出现ERROR 1406 (22001): Data too long for column 'name' at row 1
- Data too long for column 'corp_id' at row 1
- Data truncation: Data too long for column 'big_bit' at row 1
- 在程序中写了一段代码向数据库中插入数据,出现了data too long for column 'name' at row 1的问题。
- Eexception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'PIC' at
- Data truncation: Data too long for column 'id' at row 1