recursive function category database

后端 未结 4 1917
春和景丽
春和景丽 2021-01-06 16:57

i hoping to create a recursive function which i don\'t have an idea yet

this is my code to fetch category from database

  

        
4条回答
  •  一向
    一向 (楼主)
    2021-01-06 17:39

    You should have a look at Managing Hierarchical Data in MySQL.

    It gives a good overview of some approaches to using hierarchical data in MySQL.

提交回复
热议问题