select xm from tableName where xm in (select xm from tableName group by xm having count(1) >= 2)方法简单粗暴
本文介绍了一种使用SQL查询表中重复项的方法。通过子查询与外部查询结合的方式,找出表中出现次数大于等于两次的记录。这种方法适用于需要识别数据库中重复数据的场景。
select xm from tableName where xm in (select xm from tableName group by xm having count(1) >= 2)方法简单粗暴
15万+

被折叠的 条评论
为什么被折叠?