Skip to content

Instantly share code, notes, and snippets.

@vandershraaf
Created March 4, 2013 19:37
Show Gist options
  • Save vandershraaf/5084830 to your computer and use it in GitHub Desktop.
Save vandershraaf/5084830 to your computer and use it in GitHub Desktop.
WHAT THE NULL??
In Java:
String test = "lala " + null;
System.out.println(test);
--> lala null
In Transact-SQL:
-- Let's assume @input is null
DECLARE @input VARCHAR(MAX);
PRINT 'lala ' + @input;
-->
[Nothing is output in SQL "==]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment