Oracle 视图 ALL_HIER_JOIN_PATHS_AE 官方解释,作用,如何使用详细说明

本站中文解释

ALL_HIER_JOIN_PATHS_AE是Oracle数据库中的系统视图,提供了有关在应用表中定义的层次关系之间的连接路径的信息,可以方便查询应用层次结构中连接点之间的连接路径。

这个视图通常用来查询嵌套层次结构中一个指定层次节点到另一节点的连接路径,也可以用来查询任意节点之间的层次连接路径,这样可以帮助开发者快速查询应用层次结构中连接点之间的连接路径。

ALL_HIER_JOIN_PATHS_AE包含四个字段: LEVEL_NUMBER, PARENT_NODE,CHILD_NODE, HIER_PATH. LEVEL_NUMBER用来表示层次序号;PARENT_NODE存放父节点信息;CHILD_NODE存放子节点信息;HIER_PATH为整条层次连接路径。

使用ALL_HIER_JOIN_PATHS_AE视图时,可以指定连接条件来查询,例如:

1、 SELECT * FROM ALL_HIER_JOIN_PATHS_AE
WHERE PARENT_NODE = ‘A’ AND CHILD_NODE = ‘B’

此查询语句用于查询’A’节点到’B’节点的所有连接路径;

2、SELECT * FROM ALL_HIER_JOIN_PATHS_AE
WHERE LEVEL_NUMBER = 2

此查询语句用于查询层次结构中第2层所有的连接路径;

3、SELECT HIER_PATH FROM ALL_HIER_JOIN_PATHS_AE
WHERE PARENT_NODE = ‘A’

此查询语句用于查询’A’节点所有的子节点组成的层次连接路径;

4、SELECT DISTINCT HIER_PATH
FROM ALL_HIER_JOIN_PATHS_AE

此查询语句用于查询层次结构所有不同的连接路径,结果不会包括重复路径。

官方英文解释

ALL_HIER_JOIN_PATHS_AE describes the join paths for the hierarchies (across all editions) accessible to the current user.

Related Views

  • DBA_HIER_JOIN_PATHS_AE describes the join paths for all hierarchies (across all editions) in the database.

  • USER_HIER_JOIN_PATHS_AE describes the join paths for the hierarchies (across all editions) owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of the hierarchy

HIER_NAME

VARCHAR2(128)

NOT NULL

Name of the hierarchy

JOIN_PATH_NAME

VARCHAR2(128)

NOT NULL

Name of the join path

ORDER_NUM

NUMBER

NOT NULL

Order of the classification in the list of join paths associated with the hierarchy

ORIGIN_CON_ID

NUMBER

The ID of the container where the data originates. Possible values include:

  • 0: This value is used for rows in non-CDBs. This value is not used for CDBs.

  • n: This value is used for rows containing data that originate in the container with container ID n (n = 1 if the row originates in root).

EDITION_NAME

VARCHAR2(128)

 

Name of the application edition where the hierarchy is defined

Note:

This view is available starting with Oracle Database release 21c, version 21.5.

See Also:

  • “DBA_HIER_JOIN_PATHS_AE”

  • “USER_HIER_JOIN_PATHS_AE”


数据运维技术 » Oracle 视图 ALL_HIER_JOIN_PATHS_AE 官方解释,作用,如何使用详细说明