Home > Database > Mysql Tutorial > body text

What should I do if mysql cannot create a view?

coldplay.xixi
Release: 2020-10-13 16:51:17
Original
3198 people have browsed it

The solution to the problem that mysql cannot create a view: Use the CREATE VIEW statement to create the view, the code is [CREATE VIEW AS语句>

What should I do if mysql cannot create a view?

More related free learning recommendations: mysql tutorial(Video)

Solution to the problem that mysql cannot create a view:

Basic syntax

You can use the CREATE VIEW statement to create a view.

The syntax format is as follows:

CREATE VIEW <视图名> AS <SELECT语句>
Copy after login

The syntax description is as follows.

  • : 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.