Supported SQL Statements and Extensions (Salesforce Driver) : Alter Table : Altering a Remote Table : Add Clause: Constraints

Add Clause: Constraints
Purpose 
Adds a constraint to an existing table. It is optional.
Syntax 
ADD [CONSTRAINT constraint_name] ...
Notes 
*
*
Example 
Assuming the current schema is SFORCE, a foreign key constraint is added to the deptId column of the test table, referencing the rowId of the dept table. For the operation to succeed, the dept table must be empty.
ALTER TABLE test ADD FOREIGN KEY (deptId) REFERENCES dept(rowId)

© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.