trasaction 表描述字段有一些值,它工作正常。描述字段默认值为NULL,它不起作用。
update transaction set domain='hiox.com',description=CONACT(description,',domain swapped from hioxindia.com to hiox.com') where id=23602
帮帮我。。
使用 ifnull()
:
update `transaction`
set domain='hiox.com',
description=CONCAT(ifnull(description, ''), ',domain swapped from hioxindia.com to hiox.com')
where id=23602
文档