Home Database Mysql Tutorial What should I do if mysql cannot create a view?

What should I do if mysql cannot create a view?

Oct 13, 2020 pm 04:51 PM
mysql

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.