Basically, I am trying to replace everything in a line in brackets.
So, for example, the string '123 [1abc] abc' will become '123 [xx] abc'
select replace(string,'[%]','[xx]') as string2 from table1
Except that it won't work.
The values ββin parentheses are always different, and it is simply impossible to find all the individual possibilities. In addition, some of the values ββin brackets also appear outside the brackets, but I want them to be changed for the part inside.
I work in Microsoft SQL Server, if that matters.
source
share