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

How to create a view in MySQL database

Mar 22, 2021 pm 05:31 PM

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.