Graham Graham - 1 year ago 70
MySQL Question

Appending data to a MySQL database field that already has data in it

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 the field. Is there a SQL call that will do this or do I need to call the data in that field, concatenate the new data to the existing data, and reload it into the database?

Answer Source
UPDATE Table SET Field=CONCAT(Field,'your extra html');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download