Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mongodb Advanced query

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The logical structure of MongoDB is a hierarchical structure. It is mainly composed of document (document), collection (collection) and database (database). Logical structure is user-oriented what users use to develop applications using MongoDB is the logical structure.

The document document of MongoDB is equivalent to a row of records in a relational database.

Multiple documents form a collection collection is equivalent to tables in a relational database.

Multiple collections collection are logically organized together as database database.

A single MongoDB instance supports multiple database database.

Mongodb conditional query

Db.collection.find ({"field": {$gt:value}}) / / is greater than

Db.collection.find ({"field": {$lt: value}}); / / less than: field

< value db.collection.find({ "field" : { $gte: value } } ); // 大于等于: field >

= value

Db.collection.find ({"field": {$lte: value}}); / less than or equal to: field

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report