查询字段名称相同的sql

1、查找表中重复记录,重复记录是根据单个字段(description )来判断
select * from device where description in (select description from device group by description having count(description) > 1) and deviceid like ‘%DATACOLLECTOR_188/ENERGY/YDWL/1.0/%’

猜你喜欢

转载自blog.csdn.net/rosejeck/article/details/83055789