您的位置:首页 > 数据库

删除数据库中出现得重复数据得sql语句!

2008-05-14 10:15 651 查看
delete from table1 from table1 a where exists(select * from table1 where a.YX_ID<YX_ID and a.zdvalue4=zdvalue4)

SELECT top(11) * FROM c86_addis AS a WHERE not exists (SELECT * FROM c86_addis WHERE a.addis_id < addis_id AND a.phone = phone and addis_pro=5 and firstmsg_id=8 ) and addis_pro=5 and firstmsg_id=8
这句是查询出不重复得语句
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: