MySQL Forums
Forum List  »  Perl

Re: how to update row by replacing substitution
Posted by: Randy Clamons
Date: August 07, 2007 12:03PM

You're using Perl syntax in a mySql query. You might try REPLACE():

"UPDATE tbl SET firstname=REPLACE(firstname,'aaa','') WHERE id=?"

Options: ReplyQuote


Subject
Written By
Posted
Re: how to update row by replacing substitution
August 07, 2007 12:03PM


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.