All Products
Search
Document Center

PolarDB:DBA_TAB_COLUMNS

Last Updated:Mar 27, 2026

DBA_TAB_COLUMNS describes all columns across all tables and views in the database.

Column reference

ColumnTypeNullDescription
ownerCHARACTER VARYINGThe username of the owner of the table or view that contains the column.
schema_nameCHARACTER VARYINGThe name of the schema that contains the table or view.
table_nameCHARACTER VARYINGThe name of the table or view that contains the column.
column_nameCHARACTER VARYINGThe name of the column.
data_typeCHARACTER VARYINGThe data type of the column.
data_lengthNUMERICThe length of text columns.
data_precisionNUMERICThe precision of NUMBER columns, 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 — nullable; N — not nullable.
column_idNUMERICThe ordinal position of the column within the table or view.
data_defaultCHARACTER VARYINGThe default value assigned to the column.
default_lengthINTEGERThe default length.
data_type_ownerTEXTThe owner of the column's data type.
char_lengthNUMERICThe character length.
data_semanticsTEXTThe character semantics of the column.