What is the Null Character literal in TSQL?

前端 未结 6 1892
暖寄归人
暖寄归人 2020-11-27 18:49

I am wondering what the literal for a Null character (e.g. \'\\0\') is in TSQL.

Note: not a NULL field value, but the null character (see link).

6条回答
  •  伪装坚强ぢ
    2020-11-27 19:45

    I was having the same issue and using nullif solved it for me.

    Select nullif(field_with_nullchar,'') from FOO where BAR = 20
    

提交回复
热议问题