Skip to content

Instantly share code, notes, and snippets.

@trq
Last active August 29, 2015 14:00
Show Gist options
  • Save trq/4ecf4c0a3373c3a3d5ed to your computer and use it in GitHub Desktop.
Save trq/4ecf4c0a3373c3a3d5ed to your computer and use it in GitHub Desktop.
SELECT * from vouchers v
WHERE v.name = "?"
AND (v.plan_type = "?" OR v.plan_type IS NULL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment