![](/img/trans.png)
[英]SQL to retrieve parent-child relationship in parent-child order, from a self referencing table
[英]How can get the query result of order parent-child then paren-child in the table with parent-child relationship?
對於您提供的數據, order by text
。 但是,這可能不是您要執行的操作的通用解決方案,除非節點名稱(如您的示例中)遵循非常固定的模式。
升序訂購
SELECT *
FROM table_name
ORDER BY Text ASC
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.