daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Jun 21st, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. foo,1
  2. boo,2
  3. goo,3
  4.    
  5. SELECT * FROM [table] WHERE
  6. (column1 = 'foo' AND column2 = 1) OR
  7. (column1 = 'boo' AND column2 = 2) OR
  8. (column1 = 'goo' AND column2 = 3);
  9.    
  10. SELECT  *
  11. FROM    foo
  12. WHERE   (column1, column2) IN (('foo', 1), ('bar', 2))
  13.    
  14. SELECT  *
  15. FROM    foo
  16. WHERE   ROW(column1, column2) IN (ROW('foo', 1), ROW('bar', 2))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top