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
Front-end project packaging Find .env.production ...
Problem Description Several machines recently dis...
1. Why set maxPostSize? The tomcat container has ...
In the vertical direction, you can set the row al...
Preface Anyone who has learned JavaScript must be...
Table of contents System update configuration Cha...
Table of contents Preface text Primitive types Pr...
This article example shares the specific code of ...
You can use the command: docker tag [image id] [n...
Since I often install the system, I have to reins...
Table of contents 1. Always use key in v-for loop...
There is often a scenario where the image needs t...
1. Create the backup.sh script file #!/bin/sh SOU...
Table of contents Linux netstat command 1. Detail...
Download MySQL-8.0.23 Click to download: mysql-8....