Answers for "DELETE CASCADE if boolean is true"

0

DELETE CASCADE if boolean is true

ALTER TABLE dbo.T2
   DROP CONSTRAINT FK_T1_T2   -- or whatever it's called

ALTER TABLE dbo.T2
   ADD CONSTRAINT FK_T1_T2_Cascade
   FOREIGN KEY (EmployeeID) REFERENCES dbo.T1(EmployeeID) ON DELETE CASCADE
Posted by: Guest on June-14-2020

Code answers related to "DELETE CASCADE if boolean is true"

Browse Popular Code Answers by Language