Method for displaying the line number when Query in SQL Server

xiaoxiao2021-03-06  77

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

转载请注明原文地址:https://www.9cbs.com/read-94109.html

New Post(0)