层次查询SQL性能故障不断?给你份可靠的避坑指南!

复制select xxxxx from zzzz.SYS_RC_ROUTE_DETAIL t where t.route_id = (select a.route_id from xxx.sys_rc_route a,层次查询 xxx.g_wo_base b where a.route_id = b.route_id and b.work_order = yyyyyyyyy) start with t.node_type = 0 connectby nocycle prior next_node_id = node_id 1.2.3.4.5.6.7.8.