This works for me, I add a column to the table, and then add a constraint with links to another table:
-- add column to table ALTER TABLE schema.table ADD COLUMN my_column type; -- add constraint to column ALTER TABLE schema.table ADD CONSTRAINT fk_name FOREIGN KEY (column) REFERENCES schema.table (column) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION;
Gerardo Cortés Mendoza Apr 25 '17 at 14:58 2017-04-25 14:58
source share