oracle易忘sql
Posted 马文采
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle易忘sql相关的知识,希望对你有一定的参考价值。
1、树形结构同级排序
select t.parent_id, t.node_id, level, t.node_order from table_test t
start with t.parent_id = -99999 --起始父节点
connect by t.parent_id = prior t.node_id --本层level的父节点=上一层level的子节点
order siblings by t.node_order; --同级用node_order排序
2、待定
以上是关于oracle易忘sql的主要内容,如果未能解决你的问题,请参考以下文章