Import SQL file error
SQL_MODE = ONLY_FULL_GROUP_BY error when using Group BY statement query
Baidu solution:
The first one (I tried the first kind, perfect solution)
Execute SQL statement:
select version(),
@@sql_mode;SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

There is also a second online:
Modify the configuration file my.ini, add the code below the MySQLD path:
Add or modify the code:
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_S
The cause of the problem: It is because SQL_MODE is configured in 5.7 or later, SQL_MODE is configured online, and you need the group by all the fields that appear in Select. So for the database setin...
Error message: Excuting an order: Whether the query result is:ONLY_FULL_GROUP_BY Remove Only_Full_Group_by, reset the value Close connection, reconnect, query success...
1. Question: Caused by: java.sql.SQLSyntaxErrorException: Expression #6 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘supply_heat.record.supply_quality’ which...
Since I am a Docker installed mysql: 5.7 and file mapping You need to modify my.conf and mysqld.cnf (the modified local ones) my.conf 2. Mysqld.cnf add Because there is nothing in the My.conf file und...
============================== Record start ================== ===== This article mainly introduces the solution to the Mysql 5.7.9 version SQL_Mode = Only_Full_Group_by, the friends who need you can ...
I encountered an error while using group_by today, probably the following: the reason: Starting with mysql5.7.5, sql_mode uses the default value (above), and sql_mode=”” in the mysql confi...
MySQL5.7 + version, suggesting mysql1055 error, sql_mode = only_full_group_by Problem Solution MySQL5.7 + version The reason for this problem is to use a group by. However, the database has ONLY_FULL_...
Err1055, this problem is often in the implementation of sql statement, this issue will appear on the last line. ? 1 2 3 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and cont...
1. Error reporting and recurrence [2020-09-15 10:22:22.906] [000047] [localhost_3306] [MYSQL] SELECT COUNT(1) FROM ( SELECT DATE_FORMAT(create_time, ‘%Y-%m’) AS time, group_concat(id SEPAR...
The error message is as follows: #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘t.dept_code’ which is not functionally dependent on columns in GROUP BY clau...