联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
如何实现update某一记录,让其某个字段追加一定值
类型:POSCMS 更新时间:2018-11-27 14:53:54 字段

$this->db->where('id', $content['id'])->update(SITE_ID.'_'.$mid, array('dashang' => dashang+$score));
现在只覆盖,不增加

回帖
  • 诚接二开/定制/使用解答
    #1楼    诚接二开/定制/使用解答
    2018-11-27 14:51:52
    2
    $this->db->where('id', $content['id'])->set("dashang", "dashang + ".$score, false)->update(SITE_ID.'_'.$mid);
    满意答案
  • 秦
    #2楼    秦
    2018-11-27 14:53:54
    0
    谢谢,可以了