| SQL Server中查询时显示行号的方法 |
| 日期:2007-3-17 20:24:52 人气: [大 中 小] |
| 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 |
| 出处:CnCode转载收集 作者:不详 |
| SQL Server中查询时显示行号的方法 |
| 日期:2007-3-17 20:24:52 人气: [大 中 小] |
| 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 |
| 出处:CnCode转载收集 作者:不详 |