我有一個(gè)“親子關(guān)系”的一張表parentage:SQL>select*fromparentage;FATHERCHILD--------------------DavidCindyDavidTonyTomAmyTomBobTomNick為了練習(xí)rownum關(guān)鍵字,我想輸出前兩行,如下語句可以正確運(yùn)行:SQL>select*fromparentagewhererownumselect*fromparentagewhererownum>2;未選定行系統(tǒng)提示未選定行,為什么呢?明明表中有5行???還有,我想輸出第二行和第三行時(shí):SQL>select*fromparentagewhererownumbetween2and3;未選定行SQL>select*fromparentagewhererownum>=2andrownum
Oracle數(shù)據(jù)庫的rownum為什么會出現(xiàn)這個(gè)問題?
一只萌萌小番薯
2019-05-25 17:59:45