34,873
社区成员
发帖
与我相关
我的任务
分享
select * from tb where id <max(id) order by id desc
select * from tb where id >min(id) order by id
select * from tb where id not in (select min(id) from tb) order by id
select * from tb where id not in (select max(id) from tb) order by id desc
select * from tb where id not in (select top 1 id from tb)
这样?
select bh=identity(int,1,1),* into #temp from 表名
select * from #temp where bh>1