Purpose
The oceanbase.DBA_TAB_COL_STATISTICS view displays the column statistics and histograms on all tables of the database.
Note
This view is introduced since OceanBase Database V4.0.0.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| OWNER | varchar(128) | NO | The owner of the column. |
| TABLE_NAME | varchar(128) | NO | The name of the table where the column belongs. |
| COLUMN_NAME | varchar(128) | NO | The name of the column. |
| NUM_DISTINCT | decimal(10,0) | NO | The number of distinct values in the column. |
| LOW_VALUE | varchar(128) | NO | The minimum value of the column. |
| HIGH_VALUE | varchar(128) | NO | The maximum value of the column. |
| DENSITY | decimal(10,0) | NO | The density of the column. |
| NUM_NULLS | decimal(10,0) | NO | The number of NULL values in the column. |
| NUM_BUCKETS | decimal(10,0) | NO | The number of buckets in the histogram on the column. |
| LAST_ANALYZED | datetime(6) | NO | The date when the column was analyzed the last time. |
| SAMPLE_SIZE | decimal(10,0) | NO | The sample size during analysis. |
| GLOBAL_STATS | varchar(3) | NO | YES: indicates that the statistics are directly collected or incrementally maintained.NO: other cases. |
| USER_STATS | varchar(3) | NO | Indicates whether the partition statistics are set by the user. |
| NOTES | varchar(80) | NO | Some additional attributes. |
| AVG_COL_LEN | decimal(10,0) | NO | The average length of the column. |
| HISTOGRAM | varchar(15) | NO | The type of the histogram. |
| SCOPE | varchar(7) | NO | The effective scope of the statistics. |