DROP VIEW
SQL - Language Statements
DROP VIEW
remove a view
1999-07-20
DROP VIEW name [, ...] [ CASCADE | RESTRICT ]
1998-09-22
Inputs
name
The name (optionally schema-qualified) of an existing view.
CASCADE
Automatically drop objects that depend on the view
(such as other views).
RESTRICT
Refuse to drop the view if there are any dependent objects.
This is the default.
1998-09-22
Outputs
DROP VIEW
The message returned if the command is successful.
ERROR: view name does not exist
This message occurs if the specified view does not exist in
the database.
1998-09-22
Description
DROP VIEW drops an existing view from the database.
To execute this command you must be the owner of the
view.
1998-09-22
Notes
Refer to
for information on how to create views.
Usage
This command will remove the view called kinds:
DROP VIEW kinds;
Compatibility
1998-09-22
SQL92