读书人

Mysql oracle剔除重复记录的sql

发布时间: 2013-03-21 10:08:17 作者: rapoo

Mysql oracle删除重复记录的sql
MYSQL

delete from gqh_sch_info where sch_name  in (select  sch_name  from gqh_sch_info  group  by  sch_name   having  count(sch_name) > 1)and rowid not in (select min(rowid) from  gqh_sch_info  group by sch_name  having count(sch_name)>1)

读书人网 >Mysql

热点推荐