I need to \"add\" data to a field that already contains data without erasing whats currently there. For example if the field contains HTML, I need to add additional HTML to
UPDATE Table SET Field=CONCAT(Field,'your extra html');
UPDATE myTable SET html=concat(html,'<b>More HTML</b>') WHERE id='10'
... for example. Your WHERE would be different of course.
Append at the end of a field, separated with with a line break:
UPDATE Table SET Comment = CONCAT_WS(CHAR(10 USING UTF8), Comment, 'my comment.');
CHAR(10, UTF8)
is a line break. UPDATE Table SET Field=CONCAT(IFNULL(Field, ''), 'Your extra HTML')
If the field contains NULL value then CONCAT will also return NULL. Using IFNULL will help you to update column even it has NULL value.