How to remove invisible characters in t-sql?

后端 未结 7 942
天命终不由人
天命终不由人 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:36

    The ASCII code for tab is 9; you could try

    update tablename set columnname = replace(columnname, char(9), '')
    

提交回复
热议问题