Update SQL value
3 answers
Replace should work for this:
Update account
set citation = replace(citation, 'C', 'C0')
where citation like 'C%'
I used sql server instead of the syntax here. Other platforms may vary.
As @sjagr pointed out in the comments
To be sure of the values ββalready set to C0, perhaps it should be
where citation not like 'C0%' AND citation like 'C%'
+5
source to share