Skip to content

Instantly share code, notes, and snippets.

@songyunlu
Last active December 14, 2015 08:19
Show Gist options
  • Save songyunlu/5057060 to your computer and use it in GitHub Desktop.
Save songyunlu/5057060 to your computer and use it in GitHub Desktop.
SELECT * FROM opp WHERE phone = '1234567' or cellPhone = '7654321';
/* 改寫為 */
SELECT * FROM opp WHERE phone = '1234567'
UNION
SELECT * FROM opp WHERE cellPhone = '7654321';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment