select a.*,b.code,b.name from a,b where a.partid=b.partid(+);

解决方案 »

  1.   

    是这样吗,第一师的所有士兵:
    select b.*,
    (select id from a start with id = 2 connect by prior id = parentid) c
    where b.partid = a.id
      

  2.   

    duanzilin(寻)
    你的语句少了From,执行不通
      

  3.   

    不好意思
    select b.* from b,
    (select id from a start with id = 2 connect by prior id = parentid) c
    where b.partid = a.id
      

  4.   

    select b.* from b,
    (select id from a start with id = 2 connect by prior id = parentid) c
    where b.partid = C.id
    这样才正确