I have a table which references mobile numbers, but they are not all in international format. In the mobile column, I have many records and I need to change just all records with a 1 as first char to 491 and leave the rest unchanged. I tried this:
UPDATE test
SET mobile=(REPLACE (mobile,'1','491'));
But it turns a number like 1512231178 to 4915122349149178. It should be 491512231178. I think I need something like REGEXP '^1' in the REPLACE.
How can I do this with a simple update?
REGEXP_REPLACE()