/*** MongoDB $type operator*/
/*** The $type operator is based on the Bson type to retrieve the matching data type in the collection and returns the result.* The types of MongoDB that can be used are shown in the following table:* Type Number Notes*
MongoDB is a document-oriented database, which is currently developed and maintained by 10gen. It has rich functions and is complete and can completely replace MySQL. In the process of using MongoDB as a product prototype, we summarized some
1). Greater than, less than, greater than or equal to, less than or equal to$GT: Greater Than$LT: Less than$gte: greater than or equal to$lte: Less than or equal toExample:Db.collection.find ({"field": {$gt: Value}}); Greater Than:field >
First contact with MongoDB reference & paste: http://jingyan.baidu.com/article/ed15cb1b52b8661be2698162.htmlOne. Installation1. First go to the official website to downloadGo to all versions and choose a slightly less new version-because before
first, to install MongoDB 1.:http://www.mongodb.org/downloads 2. Unzip to the directory you want to install, such as D:\mongodb 3. Create folders d:\mongodb\data\db, D:\mongodb\data\log, respectively, to install the DB and log files, create a log
1). Greater than, less than, greater than or equal to, less than or equal to
$GT: Greater Than
$LT: Less than
$gte: greater than or equal to
$lte: Less than or equal to
Example:
Db.collection.find ({"field": {$gt: Value}}); Greater Than:field >
First, to install MongoDB1.:http://www.mongodb.org/downloads(recommended) Baidu Cloud Link: https://pan.baidu.com/s/1pKZXSsb Password: vkju2. Unzip to the directory you want to install, such as D:\mongodb3. Create folders d:\mongodb\data\db,
Find () methodTo query data from a MongoDB collection, you need to use MongoDB's find() method.Grammarfind()The basic syntax of the command is as follows:>db.COLLECTION_NAME.find(document)Shellfind()Method will display all documents in an
About MongoDB, not much to say, I would also like to install the experience.MongoDB InstallationI installed the version: mongodb-win32-i386-2.6.71, set up the folder in the D disk d:\mogondb, create folders d:\mongodb\data\db, D:\mongodb\data\log,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.