MySQL Forums
Forum List  »  Performance

Re: Update on Duplicate with Text-Strings?
Posted by: Peter Witschi
Date: November 24, 2004 03:28AM

Hurry-up! I found the solution by myself :-)

> cStr = is a large Textfield
> SELECT ...
> ON DUPLICATE KEY UPDATE cStr = Str & 'new
> text...'
> works not

ON DUPLICATE KEY UPDATe cStr = CONCAT(VALUES(cStr),'new text'))

That it works perfect and my Traffic goes back from 10 MB to 7 Kb

Options: ReplyQuote


Subject
Views
Written By
Posted
5060
November 24, 2004 12:21AM
Re: Update on Duplicate with Text-Strings?
2495
November 24, 2004 03:28AM


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.