Skip to content

Instantly share code, notes, and snippets.

@chadhutchins
Created February 10, 2016 14:44
Show Gist options
  • Save chadhutchins/23fe0f38725d6a49e6f5 to your computer and use it in GitHub Desktop.
Save chadhutchins/23fe0f38725d6a49e6f5 to your computer and use it in GitHub Desktop.
-- works in MySQL, fails in MSSQL
SELECT * FROM contacts WHERE IFNULL(title,’’)=’CEO’;
-- works in MSSQL
SELECT * FROM contacts WHERE ISNULL(title,’’)=’CEO’;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment