查詢語句大全

查找全部重复记录

Select * From 表/视图 Where 重复字段 In (Select 重复字段 From 表/视图 Group By 重复字段 Having Count(*)>1)

如:

select * from case_app_view

where case_id in (select  case_id  from  case_app_view group by  case_id  having count(case_id) > 1)

posted on 2010-09-28 14:43  TankMa  阅读(192)  评论(0编辑  收藏  举报