All Products
Search
Document Center

PolarDB:DROP VIEW

Last Updated:Mar 28, 2026

Removes one or more views from the database.

Synopsis

DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

Parameters

ParameterDescription
IF EXISTSDo not throw an error if the view does not exist. A notice is issued instead.
nameThe name of the view to drop. Optionally schema-qualified. To drop multiple views in one command, separate names with commas.
CASCADEAutomatically drop objects that depend on the view (such as other views), and in turn all objects that depend on those objects.
RESTRICTRefuse to drop the view if any objects depend on it. This is the default.

Examples

Drop the view kinds:

DROP VIEW kinds;