MySQL Forums
Forum List  »  PHP

Re: How to add some char. to a varchar use update query?
Posted by: Felix Geerinckx
Date: June 23, 2005 03:34AM

Wesley Wong wrote:

> I would like to use a update query to add a '-' after the email address.

UPDATE foo SET email = CONCAT(email, '-') WHERE [some_condition];

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to add some char. to a varchar use update query?
June 23, 2005 03:34AM


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.