字段筛选语法

db.users.find({},{projection})

例子:

db.users.find({user:"tom",time:{$gte:"20191111000000",$lte:"20191112000000"}},{name:1,_id:0})

只显示name,不显示_id

 posted on 2020-01-06 18:00  xibuhaohao  阅读(3606)  评论(0编辑  收藏  举报