DROP VIEW

Function

DROP VIEW forcibly deletes an existing view in a database.

Precautions

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