热线电话:13121318867

登录
2020-09-06 阅读量: 1258
where 后边可以跟distinct么?

回答:where 后边不跟distinct,distinct一般用在select后面

问题2:如果查找id不重复的所有记录,是不是可以再where后面用distinct

回答:不对,查找id不重复的所有记录应该对id进行groupby分组

image.png

image.png




76.4901
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子