Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 CakePHP 2.1
我在数据库中有以下字段。
id views max_views
我想获取views < max_views使用查找查询的记录。那么它的查询应该是什么?
views < max_views
谢谢。
我会那样做。
$this -> find('all', array('conditions' => array('views < max_views')));