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

MongoDB学习 (六):查询

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:39:00
Original
986 people have browsed it

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

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

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

      1.1 集合查询方法 find()

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

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

    Related labels:
    Statement of this Website
    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
    Latest Issues
    mongodb start
    From 1970-01-01 08:00:00
    0
    0
    0
    linux - ubuntu14 error installing mongodb
    From 1970-01-01 08:00:00
    0
    0
    0
    Use of symfony2 mongodb
    From 1970-01-01 08:00:00
    0
    0
    0
    mongodb _id rename
    From 1970-01-01 08:00:00
    0
    0
    0
    Parameter understanding of mongodb
    From 1970-01-01 08:00:00
    0
    0
    0
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template