1. 程式人生 > >查詢欄位名稱相同的sql

查詢欄位名稱相同的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/%’