Skip to content

Instantly share code, notes, and snippets.

@jeff
Created May 21, 2011 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeff/984210 to your computer and use it in GitHub Desktop.
Save jeff/984210 to your computer and use it in GitHub Desktop.
-- any way to write this so that i have 'c: donation' in only one place?
BEGIN;
UPDATE value.items
SET is_donated = true
WHERE id IN (SELECT copy FROM value.copynotes WHERE content = ': donation');
DELETE FROM value.copynotes
WHERE content = 'c: donation';
COMMIT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment