SQL query to prepend prefix to existing value in a field

后端 未结 4 745
夕颜
夕颜 2021-01-31 04:12

I have searched and searched for an answer to this, and I think this must be child\'s play for anyone who KNOWS SQL (which is not me).

I want to insert a prefix to the v

4条回答
  •  走了就别回头了
    2021-01-31 04:36

    just do it like this

    If, for example, I want to add +symbol before the countrycode:

    UPDATE [masters].[country] SET Countrycode = '+' +Countrycode
    

提交回复
热议问题