1DROP VIEW(7) PostgreSQL 12.6 Documentation DROP VIEW(7)
2
3
4
6 DROP_VIEW - remove a view
7
9 DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
10
12 DROP VIEW drops an existing view. To execute this command you must be
13 the owner of the view.
14
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), and in turn all objects that depend on those objects (see
26 Section 5.14).
27
28 RESTRICT
29 Refuse to drop the view if any objects depend on it. This is the
30 default.
31
33 This command will remove the view called kinds:
34
35 DROP VIEW kinds;
36
38 This command conforms to the SQL standard, except that the standard
39 only allows one view to be dropped per command, and apart from the IF
40 EXISTS option, which is a PostgreSQL extension.
41
43 ALTER VIEW (ALTER_VIEW(7)), CREATE VIEW (CREATE_VIEW(7))
44
45
46
47PostgreSQL 12.6 2021 DROP VIEW(7)