Skip to content

Instantly share code, notes, and snippets.

@samatsav
Created September 20, 2013 13:53
Show Gist options
  • Save samatsav/6637928 to your computer and use it in GitHub Desktop.
Save samatsav/6637928 to your computer and use it in GitHub Desktop.
Cascade delete syntax
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