Solve MySql group by error reporting only_full_group_by

 Solved by modifying the parameters

1. Query the parameters of sql_mode

select  @@global.sql_mode

 2. Modify the parameter value and re-assign

#将参数ONLY_FULL_GROUP_BY去掉
set @@global.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'

 

3. Then close navicat, reopen and execute the query statement

Guess you like

Origin blog.csdn.net/weixin_44719880/article/details/130309782