Imported upstream version 1.5
[manpages-zh.git] / raw / man7 / drop_rule.7
blobd0260eeb50f334f3196a8b7fa7b679037af7c4e1
1 .\\" auto-generated by docbook2man-spec $Revision: 1.1 $
2 .TH "DROP RULE" "7" "2003-11-02" "SQL - Language Statements" "SQL Commands"
3 .SH NAME
4 DROP RULE \- remove a rewrite rule
6 .SH SYNOPSIS
7 .sp
8 .nf
9 DROP RULE \fIname\fR ON \fIrelation\fR [ CASCADE | RESTRICT ]
10 .sp
11 .fi
12 .SH "DESCRIPTION"
13 .PP
14 \fBDROP RULE\fR drops a rewrite rule.
15 .SH "PARAMETERS"
16 .TP
17 \fB\fIname\fB\fR
18 The name of the rule to drop.
19 .TP
20 \fB\fIrelation\fB\fR
21 The name (optionally schema-qualified) of the table or view that
22 the rule applies to.
23 .TP
24 \fBCASCADE\fR
25 Automatically drop objects that depend on the rule.
26 .TP
27 \fBRESTRICT\fR
28 Refuse to drop the rule if any objects depend on it. This is
29 the default.
30 .SH "EXAMPLES"
31 .PP
32 To drop the rewrite rule newrule:
33 .sp
34 .nf
35 DROP RULE newrule ON mytable;
36 .sp
37 .fi
38 .SH "COMPATIBILITY"
39 .PP
40 There is no \fBDROP RULE\fR statement in the SQL standard.
41 .SH "SEE ALSO"
42 CREATE RULE [\fBcreate_rule\fR(7)]