question

POOJAPP avatar image
POOJAPP asked

update using select in sql server

I have a table User with UserName and Id.

This table can have special characters in the Username field:

Id UserName

1 Ær

2 År

And multiple other characters

I need to store these characters in their UTF-8 encoded format.

I created another table with the special character and its UTF-8 format.

SpecialChar UTFChar

 Â

à Ã

Ä Ã„

Å Ã…

Æ Ã†

Now i want to write a query to update the table User with the replacement UTFChar for SpecialChar found in the UserName

something like:

update User set UserName = Replace(UserName, SpecialChar, UTFChar)

but what do i join these tables on.

Please help on this.

sql serverupdate
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.