select 除id字段 into #tmp from tablename
truncate table tablename
insert tablename select * from #tmp