CodeIgniter 中国开发者社区's Archiver
论坛
›
教程发布与分享
› 数据库某个字段加 1
egirlasm
发表于 2013-9-18 11:06:56
数据库某个字段加 1
本文章仅供搜索引擎使用。
$this->db->set('comment_count','comment_count+1',FALSE);
$this->db->where('id',$this->input->post('postid'));
$this->db->update('m23_job');
详细请看 CI 手册 db->set 使用方法
iserich
发表于 2013-9-18 11:24:22
{:soso_e179:}
页:
[1]
查看完整版本:
数据库某个字段加 1