我的日期查询工作效果很好,但我正在尝试添加另一个并且这个并且失败了。有什么想法吗?
my $cursor = $collection
->find( { create_date => {'$gte' => $past,'$lt' => $present, status => $eq' => "F" }
#status => {
#'$eq' => "F'
#} } );
答案 0 :(得分:1)
您缺少一个括号:
my $cursor = $collection ->find( { create_date => {'$gte' => $past,'$lt' => $present}, status => {'$eq' => "F" }} )