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

本站中文解释

ALL_TRIGGER_COLS 视图可提供给当前用户拥有权限访问的DML触发器所需要求参考的列的信息的集合,以及它们所指向的表和索引的名称。

用法:
SELECT * FROM all_trigger_cols
WHERE owner = ”
AND trigger_name = ”
ORDER BY column_name;

以上查询从视图all_trigger_cols中,获取当前拥有的DML触发器的列的相关信息,并对它们按照列名排序。

官方英文解释

ALL_TRIGGER_COLS describes the use of columns in the triggers accessible to the current user and in triggers on tables accessible to the current user.

If the user has the CREATE ANY TRIGGER privilege, then this view describes the use of columns in all triggers in the database.

Related Views

  • DBA_TRIGGER_COLS describes the use of columns in all triggers in the database.

  • USER_TRIGGER_COLS describes the use of columns in the triggers owned by the current user and in triggers on tables owned by the current user.

Column Datatype NULL Description

TRIGGER_OWNER

VARCHAR2(128)

Owner of the trigger

TRIGGER_NAME

VARCHAR2(128)

Name of the trigger

TABLE_OWNER

VARCHAR2(128)

Owner of the table on which the trigger is defined

TABLE_NAME

VARCHAR2(128)

Table on which the trigger is defined

COLUMN_NAME

VARCHAR2(4000)

Name of the column used in the trigger

COLUMN_LIST

VARCHAR2(3)

Indicates whether the column is specified in the UPDATE clause (YES) or not (NO)

COLUMN_USAGE

VARCHAR2(17)

How the column is used in the trigger:

  • NEW IN

  • OLD IN

  • NEW IN OLD IN

  • NEW OUT

  • NEW IN OUT

  • NEW OUT OLD IN

  • NEW IN OUT OLD IN

  • PARENT IN

See Also:

  • “DBA_TRIGGER_COLS”

  • “USER_TRIGGER_COLS”


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