Please help to implement the procedure with a circular shift of letters and numbers in the text line on the principle n + 1: for example, ABCD01234AB -> BCDE1234BC. All lines in a text field of different length, different case, punctuation marks (dots, dashes, spaces) can occur. Values in the field can also be zero.
Just in case, an additional question is how to apply this procedure inside UPDATE SET?
It is necessary to have something like this:
Create procedure text_change(n varchar(1000)) declare @i char declare @l varchar(100 char) begin For each @l in n For each @i in @l loop @i = ???? end loop; return @l; end; UPDATE название_таблицы SET название_поля = text_change(поле)