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

 

 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 
这句是查询出不重复得语句
原文地址:https://www.cnblogs.com/xlfj521/p/1196278.html