设置以后退出重新登录
set global sql_mode='STRICT_TRANS_TABLES'; 然后重开session试试
If you are not using strict mode (that is, neither STRICT_TRANS_TABLES nor STRICT_ALL_TABLES is enabled), MySQL inserts adjusted values for invalid or missing values and produces warnings. In strict mode, you can produce this behavior by using INSERT IGNORE or UPDATE IGNORE.
56,677
社区成员
56,708
社区内容
加载中
试试用AI创作助手写篇文章吧