All Products
Search
Document Center

PolarDB:USER_TAB_COLS

Last Updated:Mar 28, 2026

The USER_TAB_COLS view lists the columns of all tables and views accessible to the current account, including each column's data type, length, precision, and nullability.

Note

USER_TAB_COLS returns the same information as the USER_TAB_COLUMNS view. Query USER_TAB_COLS on PolarDB clusters running version 1.1.7 or later. For clusters running earlier versions, query USER_TAB_COLUMNS instead. For more information, see Release notes and USER_TAB_COLUMNS.

Columns

ColumnTypeDescription
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, measured in digits.
data_scaleNUMERICThe scale of NUMBER columns.
nullableCHARACTER(1)Specifies whether the column accepts null values. Valid values: Y (nullable) and N (not nullable).
column_idNUMERICThe ordinal position of the column within the table or view.
data_defaultCHARACTER VARYINGThe default value of the column.