Home > Database > Mysql Tutorial > How to create a view in MySQL database

How to create a view in MySQL database

autoload
Release: 2021-04-15 14:14:08
Original
4046 people have browsed it

This article mainly describes how to use the CREATE VIEW statement to create a view in MySQL.

Syntax:

CREATE VIEW <视图名> AS <SELECT语句>
Copy after login
  • : Specify the name of the view. The name must be unique in the database and cannot have the same name as another table or view.