SELECT level,a.id FROM base_organization a
START WITH a.id=3 --开始位置
CONNECT BY PRIOR a.id=a.parent_id --id=别人的父id
level代表层级
SELECT level,a.id FROM base_organization a
START WITH a.id=3 --开始位置
CONNECT BY PRIOR a.id=a.parent_id --id=别人的父id
level代表层级