Quote from the MySQL Reference Guide :
DROP VIEW [IF EXISTS] view_name [, view_name] ... [RESTRICT | CASCADE]
DROP VIEW deletes one or more views. You must have a DROP privilege for each view. If any of the views named in the argument list does not exist, MySQL returns an error indicating by name that nonexistent representations it could not delete, but also leaves all views in the existing list.
The IF EXISTS clause prevents errors from occurring for non-existing representations. When this proposal is given, a NOTE is created for each nonexistent view. See Section 12.7.5.41, βSHOW WARNINGS Syntaxβ.
RESTRICT and CASCADE , if specified, are parsed and ignored.
user998692
source share