15.10 - Example: Adding a FOREIGN KEY Constraint - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

Add a foreign key constraint on the column named column_2 in table_1:

     ALTER TABLE table_1 ADD FOREIGN KEY (column_2) REFERENCES table_3;