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

Source: Internet
Author: User

One point of note is that when SQLAlchemy uses Create_all () to build a table, import the model of those tables on the page where the Create_all () is located.

  

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 (1024x768), \n\terr_solution varchar (65532), \n\tprimary KEY (id) \ n \ n "]

 

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

Char text blob in Source:mysql

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.