MySQL 5.7.9 version sql_mode=only_full_group_by issue When using the GROUP BY statement to query, the error com.MySQL.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'col_user_6.a.START_TIME' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by occurs Solution: Execute SET GLOBAL sql_mode = ''; to change sql_mode to a mode other than only_full_group_by. Verify that SELECT @@GLOBAL.sql_mode or SELECT @@sql_mode is in effect SET sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE The above is the editor's introduction to solving the MySQL 5.7.9 version sql_mode=only_full_group_by problem. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: JS realizes the calculation of the total price of goods in the shopping cart
>>: Solution to nginx hiding version number and WEB server information
The default template method is similar to vue2, u...
SpringBoot is like a giant python, slowly winding...
1. Table structure 2. Table data 3. The query tea...
Nginx optimization---hiding version number and we...
In the Docker system learning tutorial, we learne...
1. Why set maxPostSize? The tomcat container has ...
Preface We all know that startups initially use m...
Table of contents Preface 1. Object.freeze() 2. O...
I won’t talk about the use of SSL certificates. F...
Preface In database operations, in order to effec...
MySQL database basic syntax DDL Operations Create...
This article shares the summary of the JS mineswe...
As a lightweight open source database, MySQL is w...
Table of contents 1. The significance of users an...
Table of contents 1. BOM Introduction 1. JavaScri...