(1)语法: select * from 表名 where 条件1 start with 条件2 connect by prior 当前表字段=级联表字段
对数据的过滤条件where加载start前面
(2) START WITH CONNECT BY PRIOR用于组织结构查询、省市查询、多级菜单查询(商城系统)统计子节点的数量,通过父级id查询所有的子级、以及通过当前id查询父级。
(1)语法: select * from 表名 where 条件1 start with 条件2 connect by prior 当前表字段=级联表字段
对数据的过滤条件where加载start前面
(2) START WITH CONNECT BY PRIOR用于组织结构查询、省市查询、多级菜单查询(商城系统)统计子节点的数量,通过父级id查询所有的子级、以及通过当前id查询父级。