Skip to main content
Version: 3.5 Stable

views

views provides information about all user-defined views.

The following fields are provided in views:

FieldDescription
TABLE_CATALOGThe name of the catalog to which the view belongs. This value is always def.
TABLE_SCHEMAThe name of the database to which the view belongs.
TABLE_NAMEThe name of the view.
VIEW_DEFINITIONThe SELECT statement that provides the definition of the view.
CHECK_OPTIONThe value of the CHECK_OPTION attribute. StarRocks does not support WITH CHECK OPTION on views, so this value is always NONE.
IS_UPDATABLEWhether the view is updatable. This column is not populated, so the value is always NO.
DEFINERThe user who created the view. This column is not populated, so the value is always an empty string.
SECURITY_TYPEThe view SQL SECURITY characteristic. This column is not populated, so the value is always an empty string. It does not reflect the SECURITY clause of CREATE VIEW.
CHARACTER_SET_CLIENTThe character set of the client connection that created the view. This value is always utf8.
COLLATION_CONNECTIONThe collation of the client connection that created the view. This value is always utf8_general_ci.