sql -遞歸查詢組織機構某節點下所有及最底層

1. 表 1.查詢某一節點下的所有節點 WITH OrganizeTree AS ( SELECT name, pid, wid FROM Organize WHERE pid = '2362' UNION ALL  SELECT Organize.name, Organize.pid, Organize.wid FROM OrganizeTree  JOIN Organize ON Organi
相關文章
相關標籤/搜索