MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:GV Date:March 19 2003 5:53pm
Subject:Re: appending to longtext field
View as plain text  
I think is better to have an additional record each time a user inserts 
new information

Mr Orange wrote:
> Hello all,
> 
> I have a database with a type "longtext" called "notes".
> 
> Say I wanted to append some text to this field, what command would I use?
> 
> I have tried the following sql..
>   update clients set notes=notes+"text to append" where id=1;
> 
> But this doesn't seem to do the job.
> 
> I am new to MySQL so sorry if I've asked an obvious question!
> 
> Many thanks in advance,
> 
> Steve.
> 
> 
> PS.  What is needed is a database to store notes on each client which can be
> added to as necessary.  If anyone has a better idea of a way to do this, I'd
> be very grateful for any help!  Cheers.
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <mysql-thread135054@stripped>
> To unsubscribe, e-mail <mysql-unsubscribe-kpkp=gmx.net@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
> 

Thread
appending to longtext fieldMr Orange19 Mar
  • Re: appending to longtext fieldGV19 Mar
  • Re: appending to longtext fieldMr Orange20 Mar
    • Re: appending to longtext fieldJeff Shapiro20 Mar