查詢第20-30條

--查詢第20-30條spa

select top 10 * from dbo.TSC010000 where TSC01001> 
(select max(TSC01001) from (select top 20 TSC01001 from TSC010000 order by TSC01001 ASC ) t0)
order by TSC01001 ASC

查詢第20-30條code

select * from (select *,row_number() over (order by TSC01001 asc) as 排序 from TSC010000) t0 where 排序>20 and 排序<=30
相關文章
相關標籤/搜索