Re: UPDATE query to add to a field
| From: | DL Neil | Date: | Tue, 29 Jan 2002 17:33:56 +0000 |
| Subject: | Re: UPDATE query to add to a field | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16256@lists.php.net to get a copy of this message | ||
Hello Adv. Systems Design,
> I need to be able to update a field in MySQL, the catch is that I have to add on to text that
> is already there
and I have to be able to do it within MySQL (phpMyAdmin). My first idea was to do:
>
> SET prod_desc = prod_desc + "more info to tack on to end"
>
> but this is a mathematical function which returns 0!
>
> Any ideas?
SET prod_desc = CONCAT( prod_desc, "more info to tack on to end" )
Manual: 6.3.2 String Functions
Regards,
=dn