MySQL 9.4 Reference Manual Including MySQL NDB Cluster 9.4

27.6 Using Views

MySQL supports views, including updatable views. Views are stored queries that when invoked produce a result set. A view acts as a virtual table.

The next few sections describe the syntax for creating and dropping views, and show some examples of how to use them.

This section discusses SQL views, which are created using the CREATE VIEW statement. MySQL 9.4 also supports JSON duality views, which are created using the CREATE JSON DUALITY VIEW statement; for information about these, see Section 27.7, “JSON Duality Views”.

Additional Resources