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

后端 未结 4 1815
一向
一向 2020-12-04 23:45

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

4条回答
  •  萌比男神i
    2020-12-05 00:37

    UPDATE myTable SET html=concat(html,'More HTML') WHERE id='10' 
    

    ... for example. Your WHERE would be different of course.

提交回复
热议问题