Purpose

Adds a column, removes a column, or redefines a column in a table. The table being altered can be either a remote or local table. A remote table is a Salesforce object and is exposed in the SFORCE schema. 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]

where:

table_name
specifies an existing remote table.
add_clause
specifies a column or a foreign key constraint to be added to the table. See Add Clause: Columns and Add Clause: Constraints for a complete explanation.
drop_clause
specifies a column to be dropped from the table. See Drop Clause: Columns for a complete explanation.

Notes

  • You cannot drop a constraint from a remote table.