Remove trailing empty space in a field content

前端 未结 3 1964
不知归路
不知归路 2020-12-09 12:35

I am using SQL server MSDE 2000. I have a field called notes of type nvarchar(65).

The content is \'Something \' with an extra space after the content

3条回答
  •  清歌不尽
    2020-12-09 13:28

    ... OR you could literally just copy/paste the blank ' ' (space) at the end of a field as a result of your query into your replace statement and update everything from there.

    update TABLE1
    set notes = replace(notes, ' ', '')
    

提交回复
热议问题