You can view all the tables, views, and specific columns that are accessible to the current account by using the ALL_TAB_COLS view.
The ALL_TAB_COLS view provides the same information as the ALL_TAB_COLUMNS view.
You can query ALL_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 ALL_TAB_COLUMNS views of PolarDB clusters of version 1.1.7 or earlier. For more information about ALL_TAB_COLUMNS views, see ALL_TAB_COLUMNS.
Parameter | Type | Description |
| CHARACTER VARYING | The username of the owner of a table or view. |
| CHARACTER VARYING | The name of the schema to which the table or the view belongs. |
| CHARACTER VARYING | The name of the table or view. |
| CHARACTER VARYING | The name of the column. |
| CHARACTER VARYING | The data type of the column. |
| NUMERIC | The maximum length of data in a column. Unit: characters. |
| NUMERIC | The precision of NUMBER columns. The precision is measured by the number of digits. |
| NUMERIC | The scale of NUMBER columns. |
| CHARACTER(1) | Specifies whether the column can have a null value. Valid values:
|
| NUMERIC | The relative position of the column within the table or view. |
| CHARACTER VARYING | The default value for the column. |
| INTEGER | The default length of the column. |
| TEXT | The owner of the data type of the column. |
| NUMERIC | The character length of the column. This parameter is applicable only to data of the character type. |
| TEXT | The data modifier. |