Getting root parent

前端 未结 0 1789
[愿得一人]
[愿得一人] 2021-01-13 08:10
+--------+---------+-----------+
|   id   | title   | parent_id |
+--------+---------+-----------+
|    1   | Lvl-1   |   null    |
+--------+---------+-----------+
         


        
相关标签:
回答
  • 2021-01-13 08:34

    You are simply not going to believe this

    I wrote a post in the DBA StackExchange (October 24, 2011) on how to pull this off using Stored Procedure programming. I also included some sample data and the results.

    0 讨论(0)
  • 消灭零回复
提交回复
热议问题