MySql 去重

最近在作一个在线阅读网站,网站的内容经过爬取其它网站获取,后来发现好多数据都是重复的,须要删除重复的数据,试了几种方法,最终删除成功。网站

      delete from novel where id not in(select

      select b. id  from(  select min(id) as id from novel group by(book_name) ) as b)方法

相关文章
相关标签/搜索