ci 数据库查询语句有sql 中between and 么?
这个问题其实早都发现了,特来问问!active record 类 是ci 集成的。 没有 这个木有哦。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');
目前也只能用这个方法了~
页:
[1]