MySQL错误sql-创新互联
– 自己优化的脚本
网站名称:MySQL错误sql-创新互联
转载来源:http://hbruida.cn/article/ccspjs.html
SELECT VERSION();
select @@GLOBAL.sql_mode;
SET @@global.sql_mode = (select replace(replace(@@GLOBAL.sql_mode,"STRICT_TRANS_TABLES,",""),",NO_ZERO_IN_DATE",""));
select @@sql_mode;
SET sql_mode = (select replace(replace(@@sql_mode,"STRICT_TRANS_TABLES,",""),",NO_ZERO_IN_DATE",""));
– 参考脚本SELECT VERSION();
select @@GLOBAL.sql_mode;
SET @@global.sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
select @@sql_mode;
SET sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
Reference:
htt
ps://blog.csdn.net/u011414736/article/details/125676859
你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧
网站名称:MySQL错误sql-创新互联
转载来源:http://hbruida.cn/article/ccspjs.html