MongoDB Learning: (ii) MongoDB simple to use

Source: Internet
Author: User
Tags mongodb

MongoDB Learning: (ii) MongoDB simple to use MongoDB uses:
Before we do the MongoDB operation, we need to run the command to enter the Operation command interface >mongo
Prompt this error, indicating that our system is missing a patch, the patch I Baidu disk Connection: Https://pan.baidu.com/s/1pKPyPoJ official address: http://hotfixv4.microsoft.com/Windows%207/ Windows%20server2008%20r2%20sp1/sp2/fix405791/7600/free/451413_intl_x64_zip.exehotfix KB2731284 or later update is Not installed this issue from an official document in another paragraph: If you are running any edition of Windows Server R2 or Windows 7, please Installa hotfix To resolve a issue with memory mapped files on Windows. If you are running any version of Windows Server R2 or Windows 7, install the hotfix to resolve a memory map A problem with the file in Windows.

1: Install patchesAfter downloading, double click, will extract a patch file, install the patch file. Reboot required after installation ..... (installed after the seemingly also reported this mistake, seemingly does not affect the use.) Later in the study)


MongoDB Simple to use:
Start MongoDB:>mongoView current Database information>show DBSCREATE DATABASE, name random use+ database name>use Firstdb

MongoDB inserting data insert:
>db.people.insert ({"Name": "Table 1 Data", "Text": 123456}) Insert the document in the collection people of the FIRSTDB library (MongoDB data is document nature)


MongoDB View data select--find:
>db.people.find () Find all data
>db.people.find ({"Text": 9999})

MongoDB Modified Data update:
>db.people.update, don't explain.

MongoDB Delete data remove:
>db.people.remove, don't explain.

as above, is the basic operation of MongoDB, follow-up chapter write something, haven't thought well, think good again update.

From for notes (Wiz)

MongoDB Learning: (ii) MongoDB simple to use

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.