Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SHOW VIEW

Focus mode
SHOW VIEW - Amazon Redshift

Shows the definition of a view, including for materialized views and late-binding views. You can use the output of the SHOW VIEW statement to recreate the view.

Syntax

SHOW VIEW [schema_name.]view_name

Parameters

schema_name

(Optional) The name of the related schema.

view_name

The name of the view to show.

Examples

Following is the view definition for the view LA_Venues_v.

create view LA_Venues_v as select * from venue where venuecity='Los Angeles';

Following is an example of the SHOW VIEW command and output for the view defined preceding.

show view LA_Venues_v;
SELECT venue.venueid, venue.venuename, venue.venuecity, venue.venuestate, venue.venueseats FROM venue WHERE ((venue.venuecity)::text = 'Los Angeles'::text);

Following is the view definition for the view public.Sports_v in the schema public.

create view public.Sports_v as select * from category where catgroup='Sports';

Following is an example of the SHOW VIEW command and output for the view defined preceding.

show view public.Sports_v;
SELECT category.catid, category.catgroup, category.catname, category.catdesc FROM category WHERE ((category.catgroup)::text = 'Sports'::text);

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.