All Products
Search
Document Center

PolarDB:USER_TAB_COLUMNS

Last Updated:Mar 28, 2026

USER_TAB_COLUMNS lists metadata for every column in tables and views owned by the current user.

ColumnTypeDescription
schema_nameCHARACTER VARYINGThe 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 length of the text column.
data_precisionNUMERICThe precision of NUMBER columns, measured in digits.
data_scaleNUMERICThe scale of NUMBER columns—the number of digits to the right of the decimal point.
nullableCHARACTER(1)Whether the column accepts null values. Y – the column is nullable; N – the column does not allow null.
column_idNUMERICThe ordinal position of the column within the table.
data_defaultCHARACTER VARYINGThe default value assigned to the column.