sql遞歸查詢所有子集

sql遞歸查詢所有子集 select * from bg_organization   with a as( select * from bg_organization where orgid=1 union all select x.* from bg_organization x,a where x.pid=a.orgid) select * from a  
相關文章
相關標籤/搜索