Codeigniter Active record: greater than statement

后端 未结 4 1365
灰色年华
灰色年华 2021-01-07 23:25

I\'m trying to convert a \"greater than\" where statement to CI\'s Active Record syntax. When I use this snippet

    $this->db->join(\'product_stocks\'         


        
4条回答
  •  旧巷少年郎
    2021-01-07 23:44

    You Can also Pass a String parameter to where() function like this,

    $this->db->where('product_stocks.stock_level > 1');
    

提交回复
热议问题