一个注意点,就是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' CREATE TABLE amazon_errcode ( create_date DATETIME, modified_date DATETIME, id INTEGER NOT NULL AUTO_INCREMENT, err_code INTEGER, err_desc VARCHAR(1024), err_solution VARCHAR(65532), PRIMARY KEY (id) ) ']
------------------2016-5-17 17:30:23--
source:mysql中的char text blob