With regard to the error reported by the groupby statement of mysql5.7, is it solved by the way of sql statement without modifying the configuration?

ORDER BY clause is not in GROUP BY..this is incompatible with sql_mode=only_full_group_by, is it solved by sql statement without modifying the configuration?

reference address for modifying the configuration:
mysql query error: ORDER BY clause is not in GROUP BY..this is incompatible with sql_mode=only_full_group_by-Xiao Hei-CSDN blog
https://blog.csdn.net/u014520.

it is very cautious to modify the configuration of the online environment, is there any way to solve this problem through sql?

Oct.21,2021

if the column in the SELECT does not appear in the GROUP BY, the SQL is illegal.

if the configuration is not modified, then only non-aggregate columns are not used in select

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3696c-2c031.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3696c-2c031.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?