with rpl (rid,rpid,rname) as (select rid,rpid,rname from TESTJL where rpid=3union all select child.rid,child.rpid,child.rname from rpl parent, TESTJL child where parent.rid=child.rpid)select * from rplit