xiaoci 发表于 2015-10-22 16:32:36

ci select where and key>0

                $this->db->select('*');
                $this->db->where('aid',$aid);
                $this->db->where_in('pnumb>',0);
                $query=$this->db->get('table');
select * from table where aid='6' and pnumb>0   这个>0 怎么写呀 ,说IN(0)不对


surechun 发表于 2015-10-22 20:17:12

$this->db->where('pnumb>',0);

xiaoci 发表于 2015-10-22 16:44:17

有没有人呀 在线等呀

xiaoci 发表于 2015-10-22 16:44:57

不是or_where 不是or是 AND或者有其他的方法吗
页: [1]
查看完整版本: ci select where and key>0