MySQL Forums
Forum List  »  General

Re: Update certain part of a string
Posted by: Magnus Olsson
Date: February 04, 2005 06:13AM

Maybe you can use the string function REPLACE():

REPLACE(str,from_str,to_str)
Returns the string str with all occurrences of the string from_str replaced by the string to_str.
mysql> SELECT REPLACE('www.mysql.com', 'w', 'Ww');
-> 'WwWwWw.mysql.com'

This function is multi-byte safe.

Options: ReplyQuote


Subject
Written By
Posted
February 02, 2005 07:28PM
Re: Update certain part of a string
February 04, 2005 06:13AM


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.