Skip to content

Instantly share code, notes, and snippets.

@aaronolds
Created December 30, 2014 21:50
Show Gist options
  • Save aaronolds/4a52930b5e5b2992b6e3 to your computer and use it in GitHub Desktop.
Save aaronolds/4a52930b5e5b2992b6e3 to your computer and use it in GitHub Desktop.
MS SQL - What will the output be?
DECLARE @test VARCHAR(2)
print ISNULL(@test, 'test')
print COALESCE(@test, 'test')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment