views

The view information_schema.views contains information about all views in the database.

SELECT * FROM information_schema.views;
SELECT table_schema, table_name FROM information_schema.views WHERE NOT is_system;

information_schema.views

column nametyperemarks
table_catalogVARCHARAlways NULL
table_schemaVARCHAR
table_nameVARCHAR
view_definitionVARCHAR
check_optionVARCHARCurrently always NONE
is_updatableVARCHARNO or YES, currently always NO
insertable_intoVARCHARNO or YES, currently always NO
is_trigger_updatableVARCHARNO or YES, currently always NO
is_trigger_deletableVARCHARNO or YES, currently always NO
is_trigger_insertable_intoVARCHARNO or YES, currently always NO
schema_idINTEGERreference to sys.schemas.id
table_idINTEGERreference to sys.tables.id
table_type_idSMALLINTreference to sys.table_types.table_type_id
is_systemBOOLEANtrue when it is a system view, else false
commentsVARCHAR

Note: The last 5 columns (schema_id, table_id, table_type_id, is_system and comments) are extensions to the view as defined by ISO standard. They provide useful information and simplify filtering and joins with system tables/views in sys schema when needed.