select rownum num from( select * from test order by num) where rownum

如題


select  rn,num from (select rownum as rn ,num from (select * from test order by num)) where rn>=2 and rn<=5;


Oracle當從rownum的第二行起時候將無法查找到如何數據,只有通過別名。



參考http://database.51cto.com/art/201106/270156.htm

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章