MySQL Forums
Forum List  »  Newbie

replace a substring in a table
Posted by: dirk
Date: June 20, 2005 07:54AM

Hello everyone,

I need to replace part of a sting in a varchar field.
The field itself contains phone numbers. About 1500 of them
are formatted like this : +32 (0)51 123456 wheras I want them
to be like : +32 51 123456. I tried with 'replace' but this only
replaces an exact match, i.e. the '(0)' thing can be sometimes
on the fourth or third position in the string.
Any ideas ?

TIA

Dirk

Options: ReplyQuote


Subject
Written By
Posted
replace a substring in a table
June 20, 2005 07:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.