Home > Database > Mysql Tutorial > How do we delete a MySQL view from the database?

How do we delete a MySQL view from the database?

王林
Release: 2023-08-25 22:01:11
forward
1598 people have browsed it

我们如何从数据库中删除 MySQL 视图?

With the help of DROP VIEW statement, we can delete the MySQL view from the database. Its syntax is as follows -

Syntax

DROP VIEW [IF EXISTS] view_name;
Copy after login

Here view_name is the name of the view we want to delete from the database.

Example

Suppose we want to delete a view 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)
Copy after login

The above is the detailed content of How do we delete a MySQL view from the database?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template