刚布署了的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

 

相关文章:

  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
猜你喜欢
  • 2021-11-20
  • 2021-08-29
  • 2022-12-23
  • 2022-01-19
  • 2021-12-26
  • 2021-05-06
相关资源
相似解决方案