4.自定义字符串: 你可以手动的编写子句: PHP复制代码$where = "name='Joe' AND status='boss' OR status='active'"; $this->db->where($where);复制代码
使用道具 举报
$this->db->where() 接受可选的第三个参数。如果你将它设置为 FALSE, CodeIgniter 将不会为你那些包含反勾号的字段名或表名提供保护。
本版积分规则 发表回复 回帖后跳转到最后一页