with mytable as (select * ,Row_Number() over (order by UserId asc) as Row from T_User ) //WITH AS短语,也叫做子查询部分,Row为新列(排序行号)
select * from mytable where Row between 100 and 1000
with mytable as (select * ,Row_Number() over (order by UserId asc) as Row from T_User ) //WITH AS短语,也叫做子查询部分,Row为新列(排序行号)
select * from mytable where Row between 100 and 1000
相关文章: