mysql error 1101 text types do not have default values

The above limits mysql5.0 strict mode (STRICT_TRANS_TABLES) is:
do not support the insertion of null value not null field
is not supported from the field into the growth 'value, a null value may be inserted

It does not support text fields have default values

In the my.ini STRICT_TRANS_TABLES removed.

But this is more dangerous auto-increment field can also insert null values! The auto-increment field are generally the primary key clustered index, there really null value will be ruined.

Reproduced in: https: //www.cnblogs.com/perfectdesign/archive/2009/06/04/1495980.html

Guess you like

Origin blog.csdn.net/weixin_33904756/article/details/94233343