报错信息:which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
在对连接表进行select查找时出现以上报错信息。
打开【my.ini】文件
添加如下代码在【mysqld】中
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
保存,重启mysql即可
评论