
This is caused by the version features above MySQL5.7.
Execute the following code
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
Run and then you can, finish.

Today, I wrote a multi-table query using MySQL 5.5 locally, and the result was reported on the server MySQL-this is incompatible with sql_mode=only_full_group_by It was later discovered that it was th...
Other Other confidence in mysql under /etc/my.cnf under Linux...
which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by When executing a colleague's sql, I found that group by has a problem. select m...
【phenomenon】 【solve】...
Execute a statement: select de.dept_no, count(s.salary) from salaries s left join dept_emp de on s.emp_no = de.emp_no; Complete error message: In aggregated query without GROUP BY, expression #1 of SE...
1 Reason: Use group_concat in SQL to combine, if you are other group by reason, please find other solutions Online explanation: After mysql5.7.5, the default opened online, so some SQL could not be ex...
Cause: The management platform dashboard shows that the aggregate query is abnormal, mysql5.7 under Linux (non-docker installation) Solution: Command line/graphic tool operation:select @@global.sql_mo...
In the exercise, the most expensive product in the query group is reported as an error Error 1055 (42000): The expression #2 of the select list is not in the GROUP BY clause, and it contains mugua.goo...
1. Query mysql's mode: We need to remove the only_full_group_by mode 2. Set the mode Windows Open the my.ini file in the MySQL installation directory Add configuration Save after modification 3. Resta...
problem: the reason: solve:...