mysql: replace \ (backslash) in strings

前端 未结 6 834
执念已碎
执念已碎 2021-01-04 11:37

I am having the following problem:

I have a table T which has a column Name with names. The names have the following structure:

A\\\\B\\C

You can cre

6条回答
  •  梦谈多话
    2021-01-04 12:18

    You have to use "verbatim string".After using that string your Replace function will look like this

    Replace(@"\", @"\\")
    

    I hope it will help for you.

提交回复
热议问题