首页 > 开发 > SQL Server > 正文

SQL Server中查询时显示行号的方法

2019-11-05 10:24:50
字体:
来源:转载
供稿:网友
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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表