当前位置:Gxlcms > 数据库问题 > sql查询重复数据

sql查询重复数据

时间:2021-07-01 10:21:17 帮助过:2人阅读


from A
where id in (select id from A group by id having count(1) >= 2)

注释:id 为重复的关键字(更换成所需要的)

开发实例:

select CarlotName ,CheweiID
from Position_Car a
where a.CarlotName in (select CarlotName from Position_Car b group by b.CarlotName having count(1) >= 2)

sql查询重复数据

标签:

人气教程排行