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

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