mysql命令gruop by报错this is incompatible with sql_mode=only_full_group_by

 

mysql命令gruop by报错this is incompatible with sql_mode=only_full_group_by

在 [mysqld]和[mysql]下添加
 sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';

 

 
posted @ 2023-02-13 10:28  黄橙  阅读(17)  评论(0编辑  收藏  举报