Skip to main content

DROP VIEW

Use the DROP VIEW command to remove an existing view from a particular schema.

Syntax

DROP VIEW [IF EXISTS] view_name;

Parameters

ParameterDescription
IF EXISTS clauseDo not return an error if the specified view does not exist.
view_nameName of the view to be dropped.

Example

This statement removes the sales_report view if it exists.

DROP VIEW IF EXISTS sales_report;

Help us make this doc better!

Was this page helpful?

Happy React is loading...