I am trying to write a data-definition query to add a constraint to a table that enforces referential integrity
ALTER TABLE SS_SIZE ALTER COLUMN NDS TEXT
CONSTRAINT fk_NDS REFERENCES NDS (NDS) ON UPDATE CASCADE ON DELETE CASCADE
I've also tried
ALTER TABLE SS_SIZE ALTER COLUMN NDS
CONSTRAINT fk_NDS_NDS FOREIGN KEY (NDS) REFERENCES NDS ON UPDATE CASCADE ON DELETE CASCADE
Neither of these will work.