Skip to main content

DROP VIEW

Commands › Views · Admins only, through sercha_define or a tenant file

Removes a view.

Syntax​

DROP VIEW [ IF EXISTS ] <name>

Parameters​

ParameterDescription
<name>A view.
IF EXISTSSucceed with a message when there is no such view.

Usage notes​

Examples​

DROP VIEW IF EXISTS open_orders
result
view "open_orders" dropped

Not supported​

RefusedWrite instead
Several views in one statementOne DROP VIEW per view
-- Refused by the engine
DROP VIEW open_orders, closed_orders

See also​

CREATE VIEW · DROP MATERIALIZED VIEW · SHOW