Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column '×××' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_bysql
Mysql 5.7以上版本中數據庫
數據庫命令 select @@sql_mode 會打印出一些配置,當其中有only_full_group_by的時候,當select 出的數據 除聚合函數外,有不包含在group by 中的字段時,會向上面這樣報錯函數
only_full_group_by 配置的做用,就是約束sql語句中group by的用法,即select 中的列,必須是包含在group by 中列或者聚合函數this
--spa