11智能在线
新记
如何用sql 查找两个字段重复的记录,并列出重复记录
如题所述
举报该文章
相关建议 2017-09-12
如何用sql 查找两个字段重复的记录,并列出重复记录
select *
from shiyan003 a
where exists (select 1
from (select xm, sfzhm
from shiyan003
group by xm, sfzhm
having count(*) > 1) s
where s.xm = a.xm
and s.sfzhm = a.sfzhm)
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/424422vfvv24fs42ps.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
如何用sql 查找两个字段重复的记录,并列出重复记录
如何用sql 语句查找一个表里的两个字段重复的记录
sql查询按两个字段查询重复记录
sql查询两个字段相同的记录
怎么通过sql查询表中某个字段重复的记录
SQL语句,查询一个表中一个字段重复值,并把重复值的所有值列...
Excel 请教,如何用sql语句列出重复的记录
SQL 找出一字段中所有重复的记录