判断一个字段是否有相同的数据

来源:互联网 发布:大数据为什么在贵州 编辑:程序博客网 时间:2024/05/29 19:49
select * from table as a where exists(select 1 from table where name = a.name group by name having count(*) > 1)
0 0
原创粉丝点击