从MySQL中的分层数据生成基于深度的树(无CTE)
id
, name
parent
1 Fruit 02 Apple 13 pear 14 FujiApple 25 AusApple 26 SydneyAPPLE 5....
1 Fruit 0 ^ 2 Apple 1 ^ 4 FujiApple 2 - 5 AusApple 2 ^ 6 SydneyApple 5 - 3 pear 1
SELECT * FROM category WHERE parent=0
泛舟湖上清波郎朗
相关分类