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