I have a varchar variable: [tt]@NAME[/tt]. Is there a very concise way to check if it contains an empty string - and, if it does, replace it with a NULL?
I'd think it's something like this:
replace (@NAME, '', NULL)
but, alas, this always returns a NULL, even if the string has a regular (i.e. non-empty) value...
Thanks very much,
Lazer
I'd think it's something like this:
replace (@NAME, '', NULL)
but, alas, this always returns a NULL, even if the string has a regular (i.e. non-empty) value...
Thanks very much,
Lazer