MySQL add to fields content
#1

Hello, how do i add text into a MySQL field?

If I send a normal UPDATE query, text gets deleted, and only the new one is written. Is it possible to add to it?
Reply
#2

Probably with the CONCAT() function.
PHP код:
textfield concat(textfield'new text here'
Reply
#3

Nevermind, he was quicker ^^.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Probably with the CONCAT() function.
PHP код:
textfield concat(textfield'new text here'
But in this case i would have to load the old text first wouldn't i?
Reply
#5

No. The old values aren't overwritten until the query is done.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)