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

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

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