oracle 删除表中重复的数据

DELETE
  FROM yys_jbxx a
  WHERE rowid > ( SELECT min(rowid)
  FROM yys_jbxx b
  WHERE b.id = a.id and b.comp_name=a.comp_name);

posted on 2015-07-08 11:17  火玉  阅读(204)  评论(0编辑  收藏  举报