Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mysql relation
ALTER TABLE user
ADD CONSTRAINT fk_Pin
FOREIGN KEY (pin_no)
REFERENCES pin(pin_no)
ON DELETE CASCADE
ON UPDATE CASCADE
@souparno

This comment has been minimized.

Copy link
Owner Author

souparno commented Aug 4, 2014

ALTER TABLE Orders
ADD FOREIGN KEY (P_Id)
REFERENCES Persons(P_Id)

@souparno

This comment has been minimized.

Copy link
Owner Author

souparno commented Aug 4, 2014

ALTER TABLE Orders
DROP FOREIGN KEY fk_PerOrders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.