php – Codeigniter活动记录:大于语句

我正在尝试将“大于”where语句转换为CI的Active Record语法.当我使用这个代码
$this->db->join('product_stocks',"product_stocks.size_id_fk = product_attributes.id","left");
    $this->db->where('product_stocks.stock_level','> 1');      
    $result = $this->db->get('product_attributes')->result_array();

然后打印$this-> db-> last_query();显示WHEREproduct_stocks.stock_level =’> 1’当然不正确.这可以做吗

我认为这应该是诀窍:
$this->db->where('product_stocks.stock_level >','1');  //moved the >

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...