查询数据库某字段的相同记录

 

假设表名:e_custom

相同记录的字段:usn

select  * from e_custom  
where   usn   in   (select   usn   from   e_custom   group   by   usn   having   count(*)>1)

posted @ 2008-10-06 20:48  missthe  阅读(364)  评论(0编辑  收藏  举报