1DROP VIEW(7)            PostgreSQL 9.2.24 Documentation           DROP VIEW(7)
2
3
4

NAME

6       DROP_VIEW - remove a view
7

SYNOPSIS

9       DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
10

DESCRIPTION

12       DROP VIEW drops an existing view. To execute this command you must be
13       the owner of the view.
14

PARAMETERS

16       IF EXISTS
17           Do not throw an error if the view does not exist. A notice is
18           issued in this case.
19
20       name
21           The name (optionally schema-qualified) of the view to remove.
22
23       CASCADE
24           Automatically drop objects that depend on the view (such as other
25           views).
26
27       RESTRICT
28           Refuse to drop the view if any objects depend on it. This is the
29           default.
30

EXAMPLES

32       This command will remove the view called kinds:
33
34           DROP VIEW kinds;
35

COMPATIBILITY

37       This command conforms to the SQL standard, except that the standard
38       only allows one view to be dropped per command, and apart from the IF
39       EXISTS option, which is a PostgreSQL extension.
40

SEE ALSO

42       ALTER VIEW (ALTER_VIEW(7)), CREATE VIEW (CREATE_VIEW(7))
43
44
45
46PostgreSQL 9.2.24                 2017-11-06                      DROP VIEW(7)
Impressum