MySQL Forums
Forum List  »  Newbie

Replace in MySQL
Posted by: M Meyer
Date: May 17, 2005 09:11AM

I am trying to do an update/replace function in MySQL but I am getting MySQl error #1064. Basically the query is just trying to update a field called Description in a table called Widgets by changing some values to a new value. So, for example, I want to change the field 'oldvalue123' to 'newvalue123'

The query works well in MS SQL 2000 but not in MySQL- Here is the query

Update Widgets
Set Description = (Select Replace(Description,'oldvalue','newvalue'))
From Widgets

Any idea of how to get this to work in MySQL?

Options: ReplyQuote


Subject
Written By
Posted
Replace in MySQL
May 17, 2005 09:11AM
May 17, 2005 10:46AM


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.