DROP VIEW
Removes the metadata associated with a specified view from the catalog.
Parameter
IF EXISTS
If specified, no exception is thrown when the view does not exist.
-
The name of the view to be dropped.
Examples
-- Assumes a view named `employeeView` exists.
> DROP VIEW employeeView;
-- Assumes a view named `employeeView` exists in the `usersc` schema
> DROP VIEW usersc.employeeView;
-- Assumes a view named `employeeView` does not exist.
-- Throws exception
> DROP VIEW employeeView;
Error: Table or view not found: employeeView;
-- Assumes a view named `employeeView` does not exist. Try with IF EXISTS
-- this time it will not throw exception
> DROP VIEW IF EXISTS employeeView;