sql - Null or empty check for a string variable -
if((isnull(@value,''))='') i want know whether above piece of code works in checking if variable null or empty.
yes, code that.
you can use:
if (@value null or @value = '') edit:
with added information @value int value, need instead:
if (@value null) an int value can never contain value ''.
Comments
Post a Comment