$this->db->where($where); $this->db->set($field,$field.'+'.$number,FALSE); $this->db->update($this->db->dbprefix($this->tableName)); 转载于:https://www.cnblogs.com/xujinhua/p/10654673.html