日期:2014-05-16  浏览次数:20416 次

删除重复记录,只保留一条
delete from `tieba` where id in (select id from (SELECT *,count(`name`) as num FROM `tieba`group by `name`) as b where num>1)