How to remove invisible characters in t-sql?

后端 未结 7 924
天命终不由人
天命终不由人 2021-02-02 09:07

I tried

UPDATE TABLENAME SET COLUMNNAME = REPLACE(COLUMNNAME, \'\\t\', \'\')

But I don\'t know how to write the TAB in t-sql

7条回答
  •  独厮守ぢ
    2021-02-02 09:27

    In the beginning of my TSql sProcs, I often put

       Declare @nl Char(2) = char(13) + char(10)
       Declare @tab Char(1) = char(9)
       etc...
    

    Then you can use those declared variables anywhere in the rest of the proc without loss of clarity...

提交回复
热议问题