
When mysql's sql_mode is only_full_group_by, if the gathering function does not appear after the group by and select, then all those who are selected should be the gathering function, otherwise an error will report an error.
show session variables like '%sql_mode%';
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
If you call the interface again, you will find that the problem is solved
Since the version of MySQL 8.0 is used by its own local website environment, the following error occurs when testing a group by SQL query statement, after a lot of solutions, finally solved, record it...
CentOS7 environment mysql5.7 execution GROUP statement Error: SELECT list is not in GROUP BY clause and contains nonaggregated column '***' which is not functionally dependent on columns in GROUP BY c...
Xiaobian MySQL version: mysql ver 14.14 Distrib 5.7.28 > Problem screenshot: >solution: In the mysql installation directory, my.cnf file (or Windows system is my.ini file), newsql_mode=STRICT_TR...
First, the error page Second, the reason for the error This error occurs in MySQL 5.7 and the above version will appear: MySQL 5.7 version The default SQL configuration is: SQL_MODE = "Only_Full_...
Problem problem 1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'reporter.reporter_status.N_APP_CODE' which is not functionally dependent on columns in ...
Click on "Luo Xiaosheng", Immediately pay attention, your support helps me very much Last article From 0 to 1 second database: Other database objects / Preface / ...
Permanent modification plan Need to modify the mysql configuration file My.cnf, Linux is generally/etcor/etc/mysqlIn the directory, add the last line of the configuration file Restart the MySQL servic...
Mysql installed with Docker installed on the Linux service has an error prompt: mysql execute an error: Error querying database. Cause: java.sql.SQLSyntaxErrorException:which is not functionally depen...
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘XXXX’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with...
1. Problem description SQL query statistics abnormal 2. Analysis of the cause The literal understanding is the limitation of sql_model = only_full_group_by, which causes SQL that can be checked normal...