Skip to main content
You can use the information_schema.views view to return information about each view in a database. The view is available for each database and contains one row for each view in the database. You can use a SELECT query to return information about each view as shown in the example below. To access information about views, you must have USAGE privileges on both the schema and the database. You also need ownership of the view or view-level privileges.

Columns in information_schema.views

Each row has the following columns with information about each view.