标签:global 解决 com mysql数据库 lob _for 去掉 mys sql
#1)当mysql数据库出现如下错误:
#which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
#2)解决办法
#修改sql_mode
#查看sql_mode
select @@sql_mode,@@global.sql_mode;
#去掉ONLY_FULL_GROUP_BY
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‘;
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‘;
标签:global 解决 com mysql数据库 lob _for 去掉 mys sql
原文地址:http://www.cnblogs.com/NiceTime/p/7640589.html