Skip to content

Instantly share code, notes, and snippets.

@chadhutchins
Created February 10, 2016 14:43
Show Gist options
  • Save chadhutchins/6328d45bfae4c8b2254c to your computer and use it in GitHub Desktop.
Save chadhutchins/6328d45bfae4c8b2254c to your computer and use it in GitHub Desktop.
-- works in MySQL, fails in MSSQL
SELECT * FROM contacts WHERE title=’CEO’ && title=’CTO’;
-- works in both MySQL and MSSQL
SELECT * FROM contacts WHERE title=’CEO’ AND title=’CTO’;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment