Oracle 视图 ALL_RULES 官方解释,作用,如何使用详细说明
本站中文解释
ALL_RULES视图是Oracle数据库中的系统视图,它存储着当前用户创建的规则信息。它用于查询特定视图或表上定义的规则,其中视图/表名可以通过传字符参数指定。
使用ALL_RULES视图时,用户应该指定表和视图名(如果有),以限定查询结果。将要查询的视图或表作为WHERE 子句中的参数,紧跟在OWNER和NAME 字段之后,如下所示:
SELECT * FROM all_rules
WHERE owner = ‘schema_name’ AND name = ‘table_or_view_name’;
官方英文解释
ALL_RULES
describes the rules accessible to the current user.
Related Views
-
DBA_RULES
describes all rules in the database. -
USER_RULES
describes the rules owned by the current user. This view does not display theRULE_OWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the rule |
|
|
|
Name of the rule |
|
|
Expressions and operators that constitute the rule condition |
|
|
|
Owner of the evaluation context associated with the rule, if any |
|
|
|
Name of the evaluation context associated with the rule, if any |
|
|
|
Action context associated with the rule, if any |
|
|
|
Comment specified with the rule, if any |
See Also:
-
“DBA_RULES”
-
“USER_RULES”