网上搜了一大串,都不太合适,其实只需要一句, create table temp as select distinct * from your_tablename 然后你就可以得到一张去重后的表,替换掉原表即可