Alter Table
- Last Updated: October 30, 2020
- 1 minute read
- DataDirect Connectors
- ODBC
- Oracle Service Cloud 7.1
- Documentation
Purpose
The Alter Table statement adds a column, removes a column, or redefines a column in a local table. A local table is maintained by the driver and is local to the machine on which the driver is running. A local table is exposed in the PUBLIC schema.
Syntax
ALTER TABLE table_name [add_clause] [drop_clause]
[rename_clause]
where:
- table_name
- specifies an existing local table.
- add_clause
- specifies a column or constraint to be added to the table. See "Add clause: columns" and "Add clause: constraints" for a complete explanation.
- drop_clause
- specifies a column or constraint to be dropped from the table. See "Drop clause: columns" and "Drop clause: constraints" for a complete explanation.
- rename_clause
- specifies a new name for the table. See "Rename clause" for a complete explanation.
Notes
- Alter Table for remote tables is not supported.