db2 "rownum"

select id from(
   select ROW_NUMBER() OVER() AS a,id
   from tab
)
where a > 0 and a<50

猜你喜欢

转载自lu-tan.iteye.com/blog/2092678
db2