这个查询条件可以理解为递归查询
select up_unit_code from pmctl_nuit START WITH unit_code = '1188899Q' CONNECT BY PRIOR up_unit_code = unit_code
语句理解:
首先根据条件 START WITH unit_code 查询到 up_unit_code 显示 然后 CONNECT BY PRIOR 将查询到的up_unit_code 复制给unit_code 作为条件继续查询up_unit_code 反复执行以上步骤直到查不到up_unit_code结束
整个语句输出结果是 所有1188899Q机构的上级机构 1188899Q--->直接上级(显示)--->上级的上级(显示)--->上级的上级的上级(显示)........。