loso 发表于 2011-1-21 12:09:32

ci 数据库查询语句有sql 中between and 么?

这个问题其实早都发现了,特来问问!active record 类 是ci 集成的。

Hex 发表于 2011-1-21 21:06:09

没有

oraclelee 发表于 2011-12-26 13:19:24

这个木有哦。

      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]
查看完整版本: ci 数据库查询语句有sql 中between and 么?