mysql error
SQLSTATE[42000]: Syntax error or access violation: 1140 In aggregated query without GROUP BY, expression #6 of SELECT list contains nonaggregated column ‘live.fa_shop_tdayorder.total_payamount’; this is incompatible with sql_mode=only_full_group_by
Temporary solutions need to be run every time I restart mysql. The following order
SET @@global.sql_mode='STRICT_TRANS_TABLES';
Permanent solution, add the following configuration to restart mysql under [MySQLD]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUT
O_CREATE_USER,NO_ENGINE_SUBSTITUTION
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...
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 err...
mysql5.7 + version is turned on by defaultonly_full_group_byMode,When you turn on this mode, the column must query conditions are grouped. The original group by statement will be reported this error. ...
On database 5.7, only_full_group_by mode will be enabled by default, but after enabling this mode, the original group by statement will report an error. Cause Analysis: For group by aggregation operat...
I wrote an sql when using mybits in the project: It was correct when tested on a machine, but it was wrong when it was put on the server: This matter caused an error because some versions of mysql5.7 ...
Solution: modify the mysql configuration file The local server can modify this Add under [mysqld] Then restart service mysql restart ...
Specific error: [Err] 1055-Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘information_schema.PROFILING.SEQ’ which is not functionally depende...
MySql reports an error sql_mode=only_full_group_by Prospect introduction problem solve Prospect introduction There is a long long ago project. As the purchased Alibaba Cloud database expired and no on...
Error scenario Today, I have a project that I just came down on my computer. When I log in to enter the home page, I reported a string of this is incompatible with sql_mode = only_full_group_by error,...
Report error message: Reporting error Mysql 5.7.5 and above function dependencies. If ONLY_FULL_GROUP_BY is enabled SQL Mode (By default), MySQL will refuse to select a list, the Having condition, or ...