Alter table table1 add constraint <name of constraint> FOREIGN KEY (<column>) references table2 (<primary key column>)