DROP VIEW
statementsupportedTables, views, streams, sequencesRemoves the specified view from the current/specified schema.
Syntax
supportedpartialnot supportednot scored
DROP VIEW [ IF EXISTS ] <name>
Parameters
| Name | Required | Description |
|---|---|---|
name | Specifies the identifier for the view to drop. If the identifier contains spaces, special characters, or mixed-case characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. If the view identifier is not fully-qualified (in the form of db_name.schema_name.table_name or schema_name.table_name), the command looks for the view in the current schema for the session. |
Usage notes
- Dropped views can’t be recovered; they must be recreated.
- When the IF EXISTS clause is specified and the target object doesn’t exist, the command completes successfully without returning an error.