Home  >  Article  >  Database  >  MongoDB学习 (六):查询

MongoDB学习 (六):查询

WBOY
WBOYOriginal
2016-06-07 17:39:00892browse

本文将介绍操作符的使用,配合操作符,我们可以执行更加复杂的操作。 目录 查询操作 "、""、 ""、""、""、""、""、""、""、""、""、"" 1.1 集合查询方法 find() db.collection.find() 查询集合中文档并返回结果为游标的文档集合。 语法:db.collection.find(

 本文将介绍操作符的使用,,配合操作符,我们可以执行更加复杂的操作。

目录
  • 查询操作
  • "、""、
  • ""、""、""、""、""、""、""、""、""、""
  •  

      1.1 集合查询方法 find()

    db.collection.find()  查询集合中文档并返回结果为游标的文档集合。

    语法:db.collection.find(query, projection)

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn