What is the Null Character literal in TSQL?

Posted by David in Dakota on Stack Overflow See other posts from Stack Overflow or by David in Dakota
Published on 2010-05-13T16:05:38Z Indexed on 2010/05/13 16:34 UTC
Read the original article Hit count: 317

Filed under:
|

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).

I have a column with a mix of typical and a null character. I'm trying to replace the null character with a different value. I would have thought that the following would work but it is unsuccessfull:

select REPLACE(field_with_nullchar, char(0), ',') from FOO where BAR = 20

© Stack Overflow or respective owner

Related posts about tsql

Related posts about sql