Oracle 视图 ALL_TRIGGER_COLS 官方解释,作用,如何使用详细说明
  iDU31ygkXmx7 2023年11月21日 17 0

本站中文解释

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”

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月21日 0

暂无评论

iDU31ygkXmx7