SQLServer中查询时显示行号的方法

来源:互联网 发布:淘宝网婚纱礼服2016款 编辑:程序博客网 时间:2024/04/28 06:38
select no=identity(int,1,1),c_name into #temptable from cakeinfo

select * from #temptable where no>5

drop table #temptable 

 

 

Select no=Identity(int,1,1),* Into #temptable From TableName --Order By SortField

Select * From #temptable --Where no>=6 And no < 10

Drop Table #temptable
 
原创粉丝点击