All Products
Search
Document Center

PolarDB:ALL_TAB_COLS

Last Updated:Mar 28, 2026

ALL_TAB_COLS provides the same information as the ALL_TAB_COLUMNS view, listing the columns of all tables and views accessible to the current account.

Note

ALL_TAB_COLS is available on PolarDB clusters running version 1.1.7 or later. For clusters running version 1.1.7 or earlier, use ALL_TAB_COLUMNS. To check your cluster version, see Release notes.

Related views

ViewDescription
ALL_TAB_COLSLists tables and views accessible to the current account
ALL_TAB_COLUMNSProvides the same information as ALL_TAB_COLS. For more information, see ALL_TAB_COLUMNS.

Columns

ColumnTypeDescription
ownerCHARACTER VARYINGThe username of the owner of the table or view.
schema_nameCHARACTER VARYINGThe name of the schema that contains the table or view.
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 maximum length of the column data, in characters.
data_precisionNUMERICThe precision of NUMBER columns. The precision is measured by the number of 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 means the column accepts nulls. N means the column does not accept nulls.
column_idNUMERICThe ordinal position of the column within the table or view.
data_defaultCHARACTER VARYINGThe default value for the column.
default_lengthINTEGERThe length of the default value for the column.
data_type_ownerTEXTThe owner of the column's data type.
char_lengthNUMERICThe column length in characters. Applies only to data of the character type.
data_semanticsTEXTThe data modifier for the column.