All Products
Search
Document Center

PolarDB:DBA_TAB_COLS

Last Updated:Oct 27, 2026

You can view all the tables, views, and specific columns that are accessible to the current account by using the DBA_TAB_COLS view.

Note The DBA_TAB_COLS view provides the same information as the DBA_TAB_COLUMNS view.
  • You can query DBA_TAB_COLS views of only PolarDB clusters of version 1.1.7 or later. For more information about how to view the edition of a PolarDB cluster, see Release notes.
  • You can query DBA_TAB_COLUMNS views of PolarDB clusters of version 1.1.7 or earlier. For more information about DBA_TAB_COLUMNS views, see DBA_TAB_COLUMNS.
Parameter Type Description
ownerCHARACTER VARYINGThe username of the owner of a table or view.
schema_nameCHARACTER VARYINGThe name of the schema to which the table or the 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 maximum length of data in a column. Unit: characters.
data_precisionNUMERICThe precision of NUMBER columns. The precision is measured by the number of digits.
data_scaleNUMERICThe scale of NUMBER columns.
nullableCHARACTER(1)Specifies whether the column can have a null value. Valid values:
  • Y: indicates that the column can be null.
  • N: indicates that the column cannot be null.
column_idNUMERICThe relative position of the column within the table or view.
data_defaultCHARACTER VARYINGThe default value for the column.