mysql this is incompatible with sql_mode=only_full_group_by

MySQL 分组查询时报错 mysql this is incompatible with sql_mode=only_full_group_by

mysql 5.7

[mysqld]
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

 

mysql 8

sql_mode='STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION'

 

posted @ 2022-11-20 21:25  散人长情  阅读(18)  评论(0编辑  收藏  举报