第22章:视图 / 22.4. SHOW CREATE VIEW语法

22.4. SHOW CREATE VIEW语法

SHOW CREATE VIEW view_name

该语句给出了1个创建给定视图的CREATE VIEW语句。

mysql> SHOW CREATE VIEW v;
+------+----------------------------------------------------+
| View | Create View                                        |
+------+----------------------------------------------------+
| v    | CREATE VIEW `test`.`v` AS select 1 AS `a`,2 AS `b` |
+------+----------------------------------------------------+