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.
我想在用户表中选择一些他们的年龄在 35 岁以下的行。我写了下面的代码,但它不起作用。
$cursor = r\table('users')->filter('age' < 35)->pluck(array('name','family','age'))->run($conn);
不幸的是,上面的代码在执行后显示了所有的行,甚至超过 35 的行。
我已经编写了下面的代码,它确实有效
r\table('users')->filter(r\row('age')->lt(31))->pluck(array('name','family','age'))->run($conn);