Tell me how to replace the characters in the database table MS SQL. There is a column of type ntext
, in which you need to find all the letters "a" and replace with "b".
And so that the replacement was made in UTF-8 encoding ...
Tell me how to replace the characters in the database table MS SQL. There is a column of type ntext
, in which you need to find all the letters "a" and replace with "b".
And so that the replacement was made in UTF-8 encoding ...
If the version supports varchar (max) type:
update t set f = replace(cast(f as nvarchar(max)), N'а', N'б')
UPDATE table SET field = REPLACE(field, "а", "б")
Source: https://ru.stackoverflow.com/questions/140712/
All Articles