Am I missing something in the the following statement?
select replace('xAxAxAx', 'xAx', 'xBx')
Because it results in:
xBxAxBx
Is this known bug or I have missed something basic here?
Microsoft says that replace function:
Replaces all occurrences of a specified string value with another string value.
Isn't second xAx an occurrence here?
replace('xAxAxAx', 'A', 'B'), but I was expecting replace behaving withreplace('xAxAxAx', 'xAx', 'xBx')result inxBxBxBx