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)
Updated on: 2020-06-22T13:43:50+05:30

154 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy