select distinct * into tmp from tableName (得到无重复记录的表tmp) drop table tableName select * into tableName from tmp drop table tmp