:)
大家好~ 请问谁知道ci里的between and 是怎么写的~就像就平均的话是select_avg(),那bentween and 的写法是什么?
例如 select prod_name,prod_price from products where prod_price between 5 and 10;
请各位高手指教~
select prod_name,prod_price from products where prod_price between 5 and 1;
$this->db->select('prod_name,prod_price');
$this->db->where('prod_price between 5 and 1');
$this->db->get('products');
目前也只能用这个方法了~