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


  一个注意点,就是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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM