DROP RULE 中文man頁(yè)面
NAME
DROP RULE - 刪除一個(gè)重寫規(guī)則
SYNOPSIS
DROP RULE name ON relation [ CASCADE | RESTRICT ]
DESCRIPTION 描述
DROP RULE 刪除一個(gè)規(guī)則。
PARAMETERS 參數(shù)
- name
要?jiǎng)h除的現(xiàn)存的規(guī)則。- relation
該規(guī)則應(yīng)用的關(guān)系名字(可以有模式修飾)。- CASCADE
自動(dòng)刪除依賴于此規(guī)則的對(duì)象。- RESTRICT
如果有任何依賴對(duì)象,則拒絕刪除此規(guī)則。這個(gè)是缺省。
EXAMPLES 例子
刪除重寫規(guī)則 newrule:
DROP RULE newrule ON mytable;
COMPATIBILITY 兼容性
在 SQL 標(biāo)準(zhǔn)中沒有DROP RULE。
SEE ALSO 參見
CREATE RULE [create_rule(7)]
#p#
NAME
DROP RULE - remove a rewrite rule
SYNOPSIS
DROP RULE name ON relation [ CASCADE | RESTRICT ]
DESCRIPTION
DROP RULE drops a rewrite rule.
PARAMETERS
- name
- The name of the rule to drop.
- relation
- The name (optionally schema-qualified) of the table or view that the rule applies to.
- CASCADE
- Automatically drop objects that depend on the rule.
- RESTRICT
- Refuse to drop the rule if any objects depend on it. This is the default.
EXAMPLES
To drop the rewrite rule newrule:
DROP RULE newrule ON mytable;
COMPATIBILITY
There is no DROP RULE statement in the SQL standard.
SEE ALSO
CREATE RULE [create_rule(7)]