Information on Columns in Tables
user_tab_columns view has information about the columns. Some of the columns in user_tab_columns:
Column | Type | Description |
---|---|---|
table_name | VARCHAR2(30) | Name of the table |
column_name | VARCHAR2(30) | Name of the column |
data_type | VARCHAR2(106) | Data type of the column |
data_length | NUMBER | Length of the data |
data_precision | NUMBER | Precision of a numeric column |
SQL> SELECT column_name, data_type, data_length, data_precision, data_scale
2 FROM user_tab_columns
3 WHERE table_name = 'MYTABLE';
SQL>
Home »
Oracle »
Table »
Oracle »
Table »
Table Creation:
- Creating a Table
- Getting Information on Tables
- Information on Columns in Tables
- Renaming a Table
- Truncating a Table
- Dropping a Table
Related: