Skip to main content

DROP VIEW

Remove a view definition from the database. The underlying tables and their data are not affected.

Syntax

Description

DROP VIEW removes a previously created view. After the view is dropped, queries referencing the view name produce an error. The tables referenced by the view are unaffected.

Parameters

Behavior

  • Any triggers defined as INSTEAD OF on the dropped view are also removed.
  • If the view is a materialized view, the stored data is also removed.

Examples

Drop a View

Drop a View Only if It Exists

Drop a View in an Attached Database

See Also

  • CREATE VIEW for creating views and materialized views