DROP VIEW

Function

DROP VIEW forcibly deletes an existing view in a database.

Precautions

Only a view owner or a system administrator can run DROP VIEW command.

Syntax

1
DROP VIEW [ IF EXISTS ] view_name [, ...] [ CASCADE | RESTRICT ];

Parameter Description

Examples

Delete the myView view.

1
DROP VIEW myView;

Delete the customer_details_view_v2 view.

1
DROP VIEW public.customer_details_view_v2;

Helpful Links

ALTER VIEW, CREATE VIEW