1、wm_concat:将返回的多行数据汇总为一列,用,分割,数据类型默认为CLOB类型
2、 递归查询(树状结构数据查询,如菜单,部门等等)
SELECT
[LEVEL],*
FEOM table_name
START WITH 条件1
CONNECT BY PRIOR 条件2
WHERE 条件3
ORDER BY 排序字段
条件1---根节点的限定条件,当然也可以放宽权限,以获得多个根节点,也就是获取多个树
条件2---连接条件,目的就是给出父子之间的关系是什么,根据这个关系进行递归查询
条件3---过滤条件,对所有返回的记录进行过滤
排序字段---对所有返回记录进行排序