Check out example codes for "delete foreign key sql". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE Orders

DROP CONSTRAINT FK_PersonOrder;

Code Example 2

ALTER TABLE Orders

ADD CONSTRAINT FK_PersonOrder

FOREIGN KEY (PersonID)
REFERENCES Persons(PersonID);

Learn ReactJs, React Native from akashmittal.com