Name

DROP VIEW

Synopsis

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

Use this statement to delete a view. The IF EXISTS flag prevents error messages if the view doesn’t exist before attempting to delete it. To retrieve the error message when this flag is added, use the SHOW WARNINGS statement. The RESTRICT or CASCADE options are for a future release of MySQL. This statement is available as of Version 5.0.1 of MySQL.

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.