posts - 84,  comments - 54,  trackbacks - 0
例如 STUDENT 表中 有字段 NAME。删除其中重复记录

delete from student where rowid NOT IN (select max(rowid) from student group by name);

delete from student x where rowid NOT IN (select max(rowid) from student y where x.name = y.name );

posted on 2006-12-01 20:16 JavaCoffe 阅读(286) 评论(0)  编辑  收藏 所属分类: Oralce&&PL/SQL

只有注册用户登录后才能发表评论。


网站导航:
 
<2006年12月>
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

常用链接

留言簿(5)

随笔分类(80)

收藏夹(1)

最新随笔

积分与排名

  • 积分 - 56741
  • 排名 - 900

最新评论

阅读排行榜