ALL_TAB_COLS
ALL_TAB_COLS describes the columns of the tables, views, and clusters accessible to the current user.
To gather statistics for this view, use the DBMS_STATS package.
This view differs from ALL_TAB_COLUMNS in that system-generated hidden columns are not filtered out.
Related Views
-
DBA_TAB_COLSdescribes the columns of all tables, views, and clusters in the database. -
USER_TAB_COLSdescribes the columns of the tables, views, and clusters owned by the current user. This view does not display theOWNERcolumn.
| Column | Datatype | NULL | Description |
|---|---|---|---|
OWNER |
VARCHAR2(128) |
NOT NULL |
Owner of the table, view, or cluster |
TABLE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the table, view, or cluster |
COLUMN_NAME |
VARCHAR2(128) |
NOT NULL |
Column name |
DATA_TYPE |
VARCHAR2(128) |
Data type of the column | |
DATA_TYPE_MOD |
VARCHAR2(3) |
Data type modifier of the column | |
DATA_TYPE_OWNER |
VARCHAR2(128) |
Owner of the data type of the column | |
DATA_LENGTH |
NUMBER |
NOT NULL |
Length of the column (in bytes) |
DATA_PRECISION |
NUMBER |
Decimal precision for NUMBER datatype; binary precision for FLOAT datatype; NULL for all other datatypes |
|
DATA_SCALE |
NUMBER |
Digits to the right of the decimal point in a number | |
NULLABLE |
VARCHAR2(1) |
Indicates whether a column allows NULLs. The value is N if there is a NOT NULL constraint on the column or if the column is part of a PRIMARY KEY. |
|
COLUMN_ID |
NUMBER |
Sequence number of the column as created | |
DEFAULT_LENGTH |
NUMBER |
Length of the default value for the column | |
DATA_DEFAULT |
LONG |
Default value for the column | |
DATA_DEFAULT_VC |
VARCHAR2(4000) |
Default value for the column This column may truncate the default value. |
|
NUM_DISTINCT |
NUMBER |
Number of distinct values in the column. This column remains for backward compatibility with Oracle7. This information is now in the |
|
LOW_VALUE |
RAW(1000) |
Low value in the column. This column remains for backward compatibility with Oracle7. This information is now in the |
|
HIGH_VALUE |
RAW(1000) |
High value in the column. This column remains for backward compatibility with Oracle7. This information is now in the |
|
DENSITY |
NUMBER |
If a histogram is available on If a histogram is not available on This column remains for backward compatibility with Oracle7. This information is now in the |
|
NUM_NULLS |
NUMBER |
Number of NULLs in the column | |
NUM_BUCKETS |
NUMBER |
Number of buckets in the histogram for the column Note: The number of buckets in a histogram is specified in the |
|
LAST_ANALYZED |
DATE |
Date on which this column was most recently analyzed | |
SAMPLE_SIZE |
NUMBER |
Sample size used in analyzing this column | |
CHARACTER_SET_NAME |
VARCHAR2(44) |
Name of the character set:
|
|
CHAR_COL_DECL_LENGTH |
NUMBER |
Declaration length of the character type column | |
GLOBAL_STATS |
VARCHAR2(3) |
GLOBAL_STATS will be YES if statistics are gathered or incrementally maintained, otherwise it will be NO |
|
USER_STATS |
VARCHAR2(3) |
Indicates whether statistics were entered directly by the user (YES) or not (NO) |
|
AVG_COL_LEN |
NUMBER |
Average length of the column (in bytes) | |
CHAR_LENGTH |
NUMBER |
Displays the length of the column in characters. This value only applies to the following datatypes:
|
|
CHAR_USED |
VARCHAR2(1) |
Indicates that the column uses
|
|
V80_FMT_IMAGE |
VARCHAR2(3) |
Indicates whether the column data is in release 8.0 image format (YES) or not (NO) |
|
DATA_UPGRADED |
VARCHAR2(3) |
Indicates whether the column data has been upgraded to the latest type version format (YES) or not (NO) |
|
HIDDEN_COLUMN |
VARCHAR2(3) |
Indicates whether the column is a hidden column (YES) or not (NO) |
|
VIRTUAL_COLUMN |
VARCHAR2(3) |
Indicates whether the column is a virtual column (YES) or not (NO) |
|
SEGMENT_COLUMN_ID |
NUMBER |
Sequence number of the column in the segment | |
INTERNAL_COLUMN_ID |
NUMBER |
NOT NULL |
Internal sequence number of the column |
HISTOGRAM |
VARCHAR2(15) |
Indicates existence/type of histogram:
|
|
QUALIFIED_COL_NAME |
VARCHAR2(4000) |
Qualified column name | |
USER_GENERATED |
VARCHAR2(3) |
Indicates whether the column is a user-generated column ( Invisible columns are hidden columns that are also user- generated columns. |
|
DEFAULT_ON_NULL |
VARCHAR2(3) |
Indicates whether the column has DEFAULT ON NULL for INSERT semantics (YES) or not (NO) |
|
DEFAULT_ON_NULL_UPD |
VARCHAR2(3) |
Indicates whether the column has DEFAULT ON NULL for UPDATE semantics (YES) or not (NO) |
|
RESERVABLE_COLUMN |
VARCHAR2(3) |
Indicates whether the column is a reservable column (YES) or not (NO) |
|
IDENTITY_COLUMN |
VARCHAR2(3) |
Indicates whether the column is an identity column (YES) or not (NO) |
|
EVALUATION_EDITION |
VARCHAR2(128) |
Name of the edition in which editioned objects referenced in an expression column are resolved | |
UNUSABLE_BEFORE |
VARCHAR2(128) |
Name of the oldest edition in which the column is usable | |
UNUSABLE_BEGINNING |
VARCHAR2(128) |
Name of the oldest edition in which the column becomes perpetually unusable | |
COLLATION |
VARCHAR2(100) |
Collation for the column. Only applies to columns with character data types. | |
COLLATED_COLUMN_ID |
NUMBER |
Internal sequence number of a column, for which this virtual column generates a collation key. | |
DOMAIN_OWNER |
VARCHAR2(128) |
If a data use case domain is specified for the column, the owner of the data use case domain | |
DOMAIN_NAME |
VARCHAR2(128) |
If a data use case domain is specified for the column, the name of the data use case domain | |
DOMAIN_COLUMN_NAME |
VARCHAR2(128) |
If a data use case domain is specified for the column, the name of the data use case domain column | |
DOMAIN_ASSOCIATION_ID |
NUMBER |
If a data use case domain is specified for the column, the INTERNAL_COLUMN_ID of the first column associated with the domain |
|
JSON_MODIFIER |
VARCHAR2(448) |
A value is displayed only for columns of data type If one or more
Possible values for
If a
|
|
VECTOR_INFO |
VARCHAR2(56) |
Indicates the number of vectors and their data type in an ONNX model Format: Example: |
See Also:
-
Oracle AI Database PL/SQL Packages and Types Reference for more information about the
DBMS_STATSpackage