加载中...
加载中...
which is not functionally dependent on columns in GROUP BY c

which is not functionally dependent on columns in GROUP BY c 原创

# [Err] 1055 - Expression which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

复制SQLSELECT 
*
FROM
lx_dict_detail
WHERE d_id='123'
GROUP BY creator
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6


给所有字段加any_value函数  

复制JavaSELECT 
any_value(id),
any_value(name),
any_value(creator)
FROM
lx_dict_detail
WHERE d_id='123'
GROUP BY creator
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8


其他方法可参考

https://blog.csdn.net/qq_33621326/article/details/95950264  


没有更多推荐了 [去首页]
image
文章
357
原创
284
转载
73
翻译
0
访问量
199056
喜欢
47
粉丝
6
码龄
5年
资源
0

文章目录

加载中...
0
0