更新时间:2023-11-30 12:03:40
您要使用SQL遍历树吗?对于邻接列表模型,这是不可能的,您必须使用嵌套集模型.然后您可以ORDER BY left
以正确的顺序获取整棵树.
You want to traverse the tree using SQL? That is not possible with the adjacency list model, you have to use the nested sets model. Then you can just ORDER BY left
to get the whole tree in the correct order.