Home  >  Article  >  Backend Development  >  thinkphp3.3.2 cannot insert bit type

thinkphp3.3.2 cannot insert bit type

WBOY
WBOYOriginal
2016-08-18 09:15:321164browse

thinkphp3.3.2 version
When using the M method to create data, there is a field in the database that is of type bit. I want to change it to 1, but thinkphp cannot change it. The error message is: 1406: Data too long for column 'business_license_is_permanent' at row 1

Various inquiries were fruitless, so I turned 360 degrees and knelt down to ask for a solution. thinkphp3.3.2 cannot insert bit type

Reply content:

thinkphp3.3.2 version
When using the M method to create data, there is a field in the database that is of type bit. I want to change it to 1, but thinkphp cannot change it. The error message is: 1406: Data too long for column 'business_license_is_permanent' at row 1

Various inquiries were fruitless, so I turned 360 degrees and knelt down to ask for a solution. thinkphp3.3.2 cannot insert bit type

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn