I am testing a parameter for a Null value.
When I specify a "1" for the value, the expression works correctly:
declare @value1 int
set @value1=1
select nullif(@value1,'')
Without specify a value, I get an error message that reads "Incorrect syntax near the keyword 'select'.":
declare @value1 int
set @value1=
select nullif(@value1,'')
What do I need to do?
When I specify a "1" for the value, the expression works correctly:
declare @value1 int
set @value1=1
select nullif(@value1,'')
Without specify a value, I get an error message that reads "Incorrect syntax near the keyword 'select'.":
declare @value1 int
set @value1=
select nullif(@value1,'')
What do I need to do?