Created
September 20, 2013 13:53
-
-
Save samatsav/6637928 to your computer and use it in GitHub Desktop.
Cascade delete syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE orders_items ADD FOREIGN KEY (orderID) REFERENCES orders(orderID) ON DELETE CASCADE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment