这个问题应该不是很难!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
数据库某表中有一列的数据如下:
ggfgf98
1gfgg
16fdgr1
9fgfg
8t4t4t
894trt
568
5689
5tet9
78hgh4
16srte2
hghg
16fgf
gfgfgfrt4
用语句:
select * from (select rownum num,dyu from 某表 order by num desc)where num between 1 and 5
得到:
8t4t4t
9fgfg
16fdgr1
1gfgg
ggfgf98
我想要得到的是:
gfgfgfrt4
16fgf
hghg
16srte2
78hgh4
该怎么做,此外伪列(rownum)是不是oracle特有的,其他数据如果有的话,用法是否一样