All Products
Search
Document Center

PolarDB:ALL_TAB_COLUMNS

Last Updated:Mar 28, 2026

ALL_TAB_COLUMNS is a view that provides column metadata for all user-defined tables and views accessible to the current user.

Columns

ColumnTypeDescription
ownerCHARACTER VARYINGThe username of the owner of the table or view where the column is located
schema_nameCHARACTER VARYINGThe name of the schema to which the table or view belongs
table_nameCHARACTER VARYINGThe name of the table or view
column_nameCHARACTER VARYINGThe name of the column
data_typeCHARACTER VARYINGThe data type of the column
data_lengthNUMERICThe length of the text columns
data_precisionNUMERICThe precision of the NUMBER column, measured in digits
data_scaleNUMERICThe number of digits to the right of the decimal point in a NUMBER column
nullableCHARACTER(1)Whether the column allows null values: Y (nullable) or N (not nullable)
column_idNUMERICThe relative position of the column within the table or view
data_defaultCHARACTER VARYINGThe default value assigned to the column