I would like to update a field but previously entered contents should be kept. Is there a way to this with one query without to select first the content.
example I have a field by name protocol what is having entries exmpl.
- > this is a prevoius entry
than on update should look like
- > this is a prevoius entry
- > this is a newer entry
instead of this a better workaround
SELECT protocol FROM my_table WHERE id = 1
than I should add the new entry to my field and make the update
UPDATE my_table
SET protocol=new value
WHERE id=1
I suppose you want to concatenate the existing and the new string. The function is called CONCAT in MySQL: