select * from(select n.*,rownum r from news n where rownum<=5)where r>10
2 回答

暮色呼如
TA貢獻1853條經驗 獲得超9個贊
select * from(select n.*,rownum r from news n where rownum<=5)where r>0,這樣就有數據了。。你這類的SQL可以把子查詢單獨放到PLSQL中查一下看看數據,看看這些數據能不能滿足外面的where r>10這個條件!

慕田峪4524236
TA貢獻1875條經驗 獲得超5個贊
這樣試試:
select t.* from (select n.*,rownum r from news n where rownum<=5) as t
where t.r>10
添加回答
舉報
0/150
提交
取消