数据库
首页 > 数据库> > mysql 5.7*, 报错:this is incompatible with DISTINCT

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

 

标签:NO,DISTINCT,5.7,ZERO,报错,mysql,DATE,incompatible
来源: https://www.cnblogs.com/Qiozi/p/14181263.html