MySQL join 的方式 實現遞歸

SELECT T1.SortID,T1.lvl,T2.SortId, T2.SortName  FROM (      SELECT a.SortId,         @r AS _id,          (SELECT @r := PID FROM BSOrganizationSort WHERE SortId = @r ) AS PID,          @l := @l + 1 AS
相關文章
相關標籤/搜索