mysql 5.7.28 中GROUP BY报错问题 SELECT list is not in GROUP BY clause and contains no

MySQL ---- 5.7.28 in the GROUP BY error List IS not issue the SELECT in GROUP BY clause and the contains NO ------ 

solution: 
the SELECT @@ global.sql_mode 

# The result set
after ONLY_FULL_GROUP_BY SQL field is removed re-set it.
@@ global.sql_mode the SET = `STRICT_TRANS_TABLES, the NO_ZERO_IN_DATE, the NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION`; 

reason:
5 .7.28 version of a default on a ONLY_FULL_GROUP_BY SQL specification configuration, if sql do not meet this standard will error. If not, then put on the line to remove this specification.

 

Guess you like

Origin www.cnblogs.com/hao-huang/p/12333601.html