Mysql error 42000 this is incompative with sql_mode = only_full_group_by

tags: mysql  sql  database

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

Intelligent Recommendation

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

This is incompative with sql_mode = only_full_group_by problem solving

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

mysql error this is incompatible with sql_mode = only_full_group_by

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

MySQL sql_mode=only_full_group_by error (solved)

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

The error of mysql sql_mode=only_full_group_by in mybatis.

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

More Recommendation

mysql error: this is incompatible with sql_mode=only_full_group_by

Solution: modify the mysql configuration file The local server can modify this Add under [mysqld] Then restart service mysql restart  ...

Solve MySQL-sql_mode=only_full_group_by error

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 group error sql_mode=only_full_group_by

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

MySQL error: this is incompatible with sql_mode = only_full_group_by

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

MySQL error [this is incompatible with sql_mode = only_full_group_by]

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

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

Top