This is incompative with sql_mode = only_full_group_by problem solving

tags: node  sql  mysql  database  


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.

Solution

Query sql_mode

show session variables like '%sql_mode%';

Modify 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

Intelligent Recommendation

MySQL high version SQL_MODE = ONLY_FULL_GROUP_BY problem solving

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

MySQL5.7 Error This Is Incompatible with SQL_MODE = Only_Full_Group_by problem solving

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

[Mysql problem] Perfect solving this is incompatible with sql_mode = only_full_group_by

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

Mysql5.7 and above version SQL_Mode = Only_Full_Group_by problem solving

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

MySQL - Problem Solving --This Is Incompatible with SQL_MODE = ONLY_FULL_GROUP_BY

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

More Recommendation

MySQL5.7 version SQL_Mode = Only_Full_Group_by problem solving

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

MySQL INCOMPATIBLE with SQL_MODE = Only_Full_Group_by problem solving

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

Docker builds the MySQL 8 service, prompting this is incompative with sql_mode = only_full_group_by

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

This is incompative with sql_mode = only_full_group_by mysql group by cannot take effect

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

MySQL query statistics report errors This is incompative with sql_mode = only_full_group_by

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

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

Top