SHOW CREATE VIEW - Amazon Athena
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

SHOW CREATE VIEW

Shows the SQL statement that created the specified Athena or Data Catalog view. The SQL returned shows the create view syntax used in Athena. Calling SHOW CREATE VIEW on Data Catalog views requires Lake Formation admin or view definer permissions.

Synopsis

SHOW CREATE VIEW view_name

Examples

SHOW CREATE VIEW orders_by_date

See also CREATE VIEW and CREATE PROTECTED MULTI DIALECT VIEW and DROP VIEW.