select top 10 * from yourtable order by col or set rowcount=10 select * from yourtable
select top 10 * from tablename
set rowcount=10 select * from yourtableselect top 10 * from yourtable 10-20: select IDENTITY(int, 1,1) AS ID_Num,* into #temp from 表 select * from #temp where ID_Num between 10 and 20
or
set rowcount=10
select * from yourtable
select * from yourtableselect top 10 * from yourtable
10-20:
select IDENTITY(int, 1,1) AS ID_Num,* into #temp from 表
select * from #temp where ID_Num between 10 and 20