select * from (
select level,b.id,null parent_id,b.name_en,b.name_zh_tw,b.name_zh_cn,b.seq,b.type
,b.description,decode(b.action,null,'','selectFunction('''||b.id||''','''||b.action||''')') action
,decode(b.type,'A','menu.gif','M','folders.gif','F','drafts.gif','R','helper.gif','W','working.gif','folder.gif') image
from pf_access_log a,pf_access_node b
where a.active_flag = '1' and b.active_flag = '1'
and a.access_node_id = b.id
order by a.access_times desc
) where rownum <= 5
在9i中執行沒問題
但是在11G中執行就會存在問題.
報錯信息為:ORA-01788: 這個查詢區塊需要有一個 CONNECT BY 子句
請問怎麼修正呢?
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16754036/viewspace-692942/
,如需转载,请注明出处,否则将追究法律责任。