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
Relative path - a directory path established based...
In many cases, large and medium-sized websites wi...
The browser displays TIF format images Copy code T...
MySQL service 8.0.14 installation (general), for ...
<br />This article has briefly explained the...
I am planning to organize the company's inter...
1. Check the synchronization status of A and B da...
Table of contents No slots Vue2.x Slots With slot...
Part.0 Background The company's intranet serv...
This article records the installation tutorial of...
Table property settings that work well: Copy code ...
I was curious about how to access the project usi...
app.js: startup file, or entry file package.json:...
The process of completely uninstalling the MySQL ...
In an article a long time ago, I talked about the...