You are here: Re: Quickly adding text to a mysql text field that is NOT empty « PHP Programming Language « IT news, forums, messages
Re: Quickly adding text to a mysql text field that is NOT empty

Posted by Jim Michaels on 02/12/06 08:58

<xclarky@gmail.com> wrote in message
news:1139149880.794194.28780@o13g2000cwo.googlegroups.com...
>I could have sworn I already replied to this but it appears that it did
> not go through, but anyway; you want to modify the contents of an
> existing field without having to fetch it using a query, yes? This is
> possible through the use of MySQL's CONCAT() function:
>
> UPDATE `my_table` SET `my_field` = CONACT(`my_field`, ' append this');

you mean CONCAT

>
> So, for example the value of 'my_field' is 'John'. Upon running the
> query the value of 'my_field' will become 'John append this'. Hope that
> helps.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация