会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
qq528
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2008年12月31日
删除重复数据
摘要: 删除重复数据 一、具有主键的情况 a.具有唯一性的字段id(为唯一主键) delete table where id not in ( select max(id) from table group by col1,col2,col3... )...
阅读全文
posted @ 2008-12-31 12:38 @努力的蜗牛@
阅读(255)
评论(0)
推荐(0)
编辑
查询和删除表中重复数据sql语句
摘要: 查询和删除表中重复数据sql语句 2008-07-07 15:13 1、查询表中重复数据。select * from peoplewhere peopleId in (select peopleId from people group by peopleId having count(peo...
阅读全文
posted @ 2008-12-31 11:37 @努力的蜗牛@
阅读(471)
评论(1)
推荐(0)
编辑