Skip to content

Instantly share code, notes, and snippets.

@jakemoore
Created September 6, 2011 18:27
Show Gist options
  • Save jakemoore/1198528 to your computer and use it in GitHub Desktop.
Save jakemoore/1198528 to your computer and use it in GitHub Desktop.
delete components trigger
CREATE TRIGGER "items_delete" AFTER DELETE ON Tables.ITEMS
BEGIN
DELETE FROM Tables.COMPONENTS WHERE Components.ITEM_ID = old._ID;
END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment