1.存在完全相同的纪录
select distinct * from table(表名) where (条件)
2.存在部分字段相同的纪录(有主键id即唯一键)
select * from table where id in (select max(id) from table group by [去除重复的字段名列表,....])
3.没有唯一键ID
select identity(int,1,1) as id,* into newtable(临时表) from table
select * from newtable where id in (select max(id) from newtable group by [去除重复的字段名列表,....])
drop table newtable