1ALTER TABLE table_name
2ADD CONSTRAINT fk_foreign_key_name
3FOREIGN KEY (foreign_key_name)
4REFERENCES target_table(target_key_name);
1ALTER TABLE table_name
2 ADD CONSTRAINT fk_foreign_key_name
3 FOREIGN KEY (foreign_key_name)
4 REFERENCES target_table(target_key_name);
5