Import data error SQL_MODE = ONLY_FULL_GROUP_BY problem

tags: mysql  database  

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
 

Intelligent Recommendation

SQL_MODE = ONLY_FULL_GROUP_BY Problem Solution

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...

MySQL SQL_MODE = Only_Full_Group_by problem

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...

【Sql_mode = only_full_group_by problem solution】

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...

Solution sql_mode = only_full_group_by problem

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...

Solve MySQL 5.7.9 version SQL_MODE = ONLY_FULL_GROUP_BY problem, this is incompatible with sql_mode = only_full_group_by error

============================== 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 ...

More Recommendation

Mysql using group_by 1055 error | sql_mode=only_full_group_by problem

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, 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_...

mysql 1055 Error solution [MYSQL5.7 version sql_mode = only_full_group_by Problem

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...

Win10 solves the problem of MySQL8.0.17 this is incompatible with sql_mode=only_full_group_by error

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...

Mysql 8.x version error problem analysis and solution, sql_mode = only_full_group_by

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...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top