MongoDB搜索集合 [英] MongoDB search in collection

查看:157
本文介绍了MongoDB搜索集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是MOngoDB中的newby,具有以下任务.我在whicn中有一个收藏集,我应该获取截至当前日期的所有类型的最近一次上传文件的列表,例如2016-02-03.我需要输出显示文件上传的时间.

I'm a kind of newby in MOngoDB and have the following task. I have a collection in whicn I should get the list of the last uploaded files of all types to the current date, for example for 2016-02-03 . I need the output shows me the time the file was uploaded.

你能给我一个暗示的hoe头吗?也许有一些脚本.

Could you please give me a hint hoe to do it?? Maybe some scripts.

谢谢!

推荐答案

db.collectionName.find( { contribs: "UNIX" } )

为更好地理解,您可以点击以下链接.

For better understanding you can follow the following link.

https://docs.mongodb.com/manual/reference /method/db.collection.find/

这篇关于MongoDB搜索集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆