1. Error
> 1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'n.wifi_mac' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
2. Inquiry
SELECT @@sql_mode; Outcome: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
3. Modify the/etc/my.cnf file and add SQL_ Model (delete only_full_group_by)
SELECT @@sql_mode; Outcome: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
Similar Posts:
- [Solved] MySQL Error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre
- [Solved] MYSQL Command gruop by Error: this is incompatible with sql_mode=only_full_group_by
- SELECT list is not in GROUP BY clause and contains nonaggregated column
- [Solved] MYSQL8 group by Error: Cause: java.sql.SQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY
- [Solved] SELECT list is not in GROUP BY clause and contains nonaggregated
- Solve the problem of grouping error expression #1 of select list is not in group for MySQL greater than version 5.7
- Laravel uses group by to report errors [How to Solve]
- Expression #1 of ORDER BY clause is not in SELECT list, references column ‘xxxx’ which is not in SELECT list; this is incompatible with DISTINCT
- MySQL Error: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column
- [Err] 1055 – Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c