I need to delete all views from my MySQL database. How can I do that using query?
Can anyone can help me please?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Quoting from MySQL Reference Manual:
DROP VIEWremoves one or more views. You must have theDROPprivilege for each view. If any of the views named in the argument list do not exist, MySQL returns an error indicating by name which non-existing views it was unable to drop, but it also drops all of the views in the list that do exist.The
IF EXISTSclause prevents an error from occurring for views that don’t exist. When this clause is given, aNOTEis generated for each nonexistent view. See Section 12.7.5.41, “SHOW WARNINGS Syntax”.RESTRICTandCASCADE, if given, are parsed and ignored.