Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
SHOW CREATE VIEW
On this page
The SHOW CREATE VIEW command shows the CREATE VIEW statement that was used to create the view.
Syntax
SHOW CREATE VIEW view_nameArguments
view_
The name of the view.
Remarks
-
The
Create Viewfield from the output can be used to recreate the view. -
The output also contains information on
character_andset_ client collation_.connection See List of Engine Variables for more information. -
See the Permission Matrix for the required permission.
Example
The following example displays the output of SHOW CREATE VIEW for the shipped_ view from CREATE VIEW.
SHOW CREATE VIEW shipped_products\G
*** 1. row ***
View: shipped_products
Create View: CREATE DEFINER=`root`@`%` SCHEMA_BINDING=OFF VIEW `shipped_products` AS SELECT `orders`.`product_id` AS `product_id`, `orders`.`quantity` AS `quantity` FROM `orders` as `orders` WHERE (NOT ISNULL(`orders`.`quantity`))
character_set_client: utf8mb4
collation_connection: utf8mb4_binRelated Topics
Last modified: