您的位置:首页技术文章
文章详情页

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

【字号: 日期:2023-10-29 12:35:57浏览:45作者:猪猪
Select no=Identity(int,1,1),* Into #temptable From TableName --Order By SortFieldSelect * From #temptable; --Where no>=6 And no < 10Drop Table #temptable
标签: Sql Server 数据库