trasaction表描述字段有一些值,它工作正常.
说明feild默认值为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

Documentation

dawei

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注