查找重复记录

select * from rm_duty a where exists(select 1 from rm_duty b where b.duty_name=a.duty_name and a.rowid>b.rowid )

编程技巧