--把cat表的记录distinct后的结果放入#temp临时表
select distinct * into #temp from cat
--把cat表的记录清空
delete from cat
--把#temp表的数据(无重复)插入cat表
insert into cat select * from #temp
--删除临时表#temp
drop table #temp
分页查询
sql server的分页查询:top关键字,row_number();
mysql的分页查询:关键字limit;