1074, "Column length too big for column 'err_solution' (max = 21845); use BLOB or TEXT

Posted [幸运]

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1074, "Column length too big for column 'err_solution' (max = 21845); use BLOB or TEXT 相关的知识,希望对你有一定的参考价值。

  一个注意点,就是sqlalchemy 使用create_all()建表的时候,要在 create_all()所在页面import那些表的model

  

sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1074, "Column length too big for column ‘err_solution‘ (max = 21845); use BLOB or TEXT instead") [SQL: u‘\nCREATE TABLE amazon_errcode (\n\tcreate_date DATETIME, \n\tmodified_date DATETIME, \n\tid INTEGER NOT NULL AUTO_INCREMENT, \n\terr_code INTEGER, \n\terr_desc VARCHAR(1024), \n\terr_solution VARCHAR(65532), \n\tPRIMARY KEY (id)\n)\n\n‘]

 

 

 

 

 

------------------2016-5-17 17:30:23--

    source:mysql中的char text blob

以上是关于1074, "Column length too big for column 'err_solution' (max = 21845); use BLOB or TEXT 的主要内容,如果未能解决你的问题,请参考以下文章

LightOJ1074Extended Traffic(bellman_ford最短路+负环标记)

MySQLdb._exceptions.DataError: (1406, "Data too long for column 1)

快速修改MySQL字段类型

MySQL varchar 字段报错 Column length too big for column 'name' (max = 16383)

mysql #1170错误(42000) BLOB/TEXT Column Used in Key Specification Without a Key Length

Spring Boot 注解加密隐私信息