[英]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.