最近在作一個在線閱讀網站,網站的內容經過爬取其它網站獲取,後來發現好多數據都是重複的,須要刪除重複的數據,試了幾種方法,最終刪除成功。網站
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)方法