Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. select * from cus where rownum between 2 and 6;
  2.  
  3. select * from
  4. (select t.*, rownum as rownum_ from t)
  5. where rownum_ between 2 and 6
  6.  
  7. select t2.*, rownum from
  8. (select a, b, rownum as rownum_ from t) t2
  9. where rownum_ between 2 and 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement