当前位置:Gxlcms > 数据库问题 > Oracle 输出树形结构

Oracle 输出树形结构

时间:2021-07-01 10:21:17 帮助过:24人阅读

Oracle 输出树形结构

树形结构,根 select connect_by_root(cat.parentid) root,cat.id,cat.parentid,cat.name,cat.code from V cat start with cat.parentid in (37558) connect by prior cat.id= cat.parentid

树形结构,一级子目录 select connect_by_root(cat.id) root,cat.id,cat.parentid,cat.name,cat.code from A cat start with cat.parentid in (select id from bto_c2.category_new where parentid = 37558) connect by prior cat.id= cat.parentid

 

ORACLE 实用函数使用案列

Oracle 输出树形结构

标签:name   子目录   where   函数   href   url   cat   html   spring   

人气教程排行