Billpeng Space

技术源自生活
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

SQL删除重复记录,并只保留一条

Posted on 2015-04-20 15:38  billpeng  阅读(174)  评论(0编辑  收藏  举报
delete WeiBoTopics where Id in(select max(Id) from WeiBoTopics group by WeiBoId,Title having COUNT(*) > 1);