First, backup In MongoDB we use the Mongodump command to back up MongoDB data. The command can export all data to the specified directory.The Mongodump command allows you to specify the server to which the exported data can be dumped by parameter.
In addition to the tangle of queries, the rest are relatively simple! In fact, when I learned how to add, delete, modify, and query mongodb command lines, I also tried it one by one based on the examples on the official website, so please feel free
In addition to the tangle of queries, the rest are relatively simple!
In fact, when I learned how to add, delete, modify, and query mongodb command lines, I also tried it one by one based on the examples on the official website, so please feel free
Query operations
1. Check all records
Db.userInfo.find ();
Equivalent:
select* from UserInfo;
2. Duplicate data for a column in the current clustered collection after the query has been removed
Add toLet's create a set of test and write some data. Create two objects J and T, and save to the collection. In the example ">" to indicate a shell input prompt> j = {name: "MONGO"};{"Name": "MONGO"}> t = {x:3};{"X": 3}> Db.things.save (j);>
If you have never been familiar with MongoDB or have a little understanding of MongoDB, if you are a C # developer, take a few minutes to read this article. This article will take you step by step to get started easily. Read directory 1:
Statement: The article is mainly from the "MongoDB actual Combat" a book, the main want to learn MongoDB knowledge through the book, deepen understanding, so write in their own blog, as a record, in the final chapter, there will be a collection of
MongoDB is a NoSQL database system: A database can contain multiple sets (Collection), each set corresponds to a table in a relational database, and each collection can store a set of records identified by the column, which is freely defined, very
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.