select connect_by_root(t1.id),
       id
  from tab1 t1
 where t1.pid in(select id from work)
 start with t1.pid is null
connect by prior t1.id = t1.pid查找 work的ID下所有的节点,报错:不能在远程数据库链接使用start with子查询
而这样写是没有问题的
select connect_by_root(t1.id),
       id
  from tab1 t1
 where t1.pid in(1,2,3,4,5,6,)
 start with t1.pid is null
connect by prior t1.id = t1.pid