当前位置:首页 - MySql

mysql update报错 this is incompatible with sql_mode=only_full_group_by

作者:高景洋 日期:2019-12-31 23:23:43 浏览次数:2381

MySql 在进行 Update 操作时,报 “this is incompatible with sql_mode=only_full_group_by” 错误。


解决方法:

在my.ini 中增加以下 配置


sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"


然后,重启 MySql ,即可正常进行更新操作。

本文永久性链接:
<a href="http://r4.com.cn/art121.aspx">mysql update报错 this is incompatible with sql_mode=only_full_group_by</a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 3.137.177.116 X-Real-Ip: 3.137.177.116 X-Domain: r4.com.cn X-Request: GET /art121.aspx HTTP/1.1 X-Request-Uri: /art121.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Accept-Encoding: gzip, br, zstd, deflate