mysql 5.7*, 报错:this is incompatible with DISTINCT

刚布署了的mysql查询报错:

this is incompatible with DISTINCT

解决方法:

在mysql 配置文件my.ini 或者my.cnf 里添加:

[mysqld]
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 @ 2020-12-23 21:23  Qiozi  阅读(1080)  评论(0编辑  收藏  举报