- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How can we drop a MySQL view from the database?
With the help of DROP VIEW statement, we can drop a MySQL view from the database. Its syntax would be as follows −
Syntax
DROP VIEW [IF EXISTS] view_name;
Here view_name is the name of the view which we want to delete from the database.
Example
Suppose if we want to drop a view named info_less then the following query will delete if −
mysql> DROP VIEW IF EXISTS Info_less; Query OK, 0 rows affected (0.03 sec)
Advertisements