2

我有一个查询:

SELECT ps_node_id,name 
FROM cz_ps_nodes WHERE cz_ps_nodes.ps_node_type=261
START WITH NAME = 'Bundle Rule Repository',cz_ps_nodes.devl_project_id = P_devl_project_id AND cz_ps_nodes.deleted_flag = 0
CONNECT BY PRIOR ps_node_id = parent_id.

此查询有效。但是,如果我只是从选择部分中删除名称,例如:

SELECT ps_node_id
FROM cz_ps_nodes WHERE cz_ps_nodes.ps_node_type = 261                       
START WITH NAME = 'Bundle Rule Repository',cz_ps_nodes.devl_project_id = P_devl_project_id AND cz_ps_nodes.deleted_flag = 0                                         
CONNECT BY PRIOR ps_node_id = parent_id.

查询只是挂起,但正在使用 oracle 10g,当我们升级到 oracle 11g 时问题就开始了。谁能解释为什么?

4

1 回答 1

0

通过使用解决了问题:alter session set optimizer_features_enable='10.2.0.4' –

于 2013-07-30T10:33:00.093 回答