如何在CodeIgniter中的db-> get_where()中使用“大于”和“小于”? [重复]

This question already has an answer here:

I'm having a problem about my project. Because my logic wants something like

$this->db->get_where('products', array('prod_price' > 100 ));

So. I wan't to know if there is a solution for this.

</div>

1个回答

The custom operator should be part of the column's string:

$this->db->get_where('products', array('prod_price >', 100 ));
# Here --------------------------------------------^
douan0729
douan0729 所以我不再使用'=>了?
2 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐