原文:which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by问题分析

SELECT a.Id, a.PhoneNo, a.Content, a.transactionId FROM MarketBatchDetails a INNER JOIN SELECT Id FROM MarketBatchInfo WHERE TaskId AND BatchType b ON a.BatchId b.Id WHERE a.Status AND a.TaskId AND a. ...

2021-11-23 11:26 0 3067 推荐指数:

查看详情

; this is incompatible with sql_mode=only_full_group_by

1.这个错误发生在mysql 5.7 版本及以上版本会出现的问题: mysql 5.7版本默认的sql配置是:sql_mode="ONLY_FULL_GROUP_BY",这个配置严格执行了"SQL92标准" 2.在sql执行时,出现该原因: 简单来说就是:输出 ...

Sun May 31 19:34:00 CST 2020 0 6495
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM