Mongovue is a more useful MongoDB client, need to register, but can become permanent use, one, the basic operation
Add a connection
Enter the interface shape as
second, advanced Operation
1, see all the data, there will be three forms of viewing mode, respectively, tree, table, BJOSN, details see 1.1
2, to view the specific data, the use of the shell command, need some basic knowledge of grammar, details see 2.1
3. Update the data, see 3.1 for details
4, delete data, use with caution, if there is no backup, can not be recovered after deletion
5, insert data, details see 5.1
6. Copy the document to the unified collection, see 6.1 for details.
7. Copy the collection to a different database, see 7.1 for details
8, delete all the data in the document, use caution, if there is no backup, can not be recovered after deletion
9, delete the database with caution, if there is no backup, after deletion cannot recover 1.1 View all data
After clicking "View", the data in the document will appear.
Tree shape:
Form:
When you need to modify what value, you can directly click on the field to be modified to modify, after the completion of the change press ENTER
TXT-shaped, Bjson format
2.1 Viewing specific data
1. Click "Find", enter the criteria and click on Find to query, here is a simple way to tell the basic query statement
A little blurry, you can zoom in.
1, the area for the basic query
A set of key values, key is the field to be queried, value is the values of the field to be queried, if multiple are separated by commas
Syntax {"Fields to query": "To query the value of a field", "second" ...)
For example, we would like to check the information of a person named Huihh, and the age of 30, then write
{"Name": "Huihh", "Age": 30}
2. Field Query
and 1 a bit different so if write query statement
{"Name": "HUIHH"} then the queried data, out of the ID, is the name of an entire column, and will not be filtered, so, here we can write {"name", ""}, after the query only display the name of the column, if you need additional special query conditions, with 1 shared
3. Sorting
Method uses a set of key-value pairs to make parameters, key is the name of the key in document, value is 1 ascending or 1 descending.
For example, there will be 3 people querying huihh, so use age to sort,
{"Age":-1}
4. Filter the result set
in the 4 area you will see that the shape
The limit function restricts the upper bound of the returned result set, as set to 1000, then returns the first 1000 rows
The Skip function skips the previous X results, returns the remaining one, here is 0, does not skip, if set to 1, then skips the query to the first data, return the following
1. Click "Find2"
Basic and 1 The same, the only difference is that there is a where statement, and this is written in JS, there is a JS base of interest can point below the site to see
http://blog.163.com/wm_at163/blog/static/132173490201252610424458/ 3.1 Update Data
The left 1 for the query, is to modify the place, first check out, and then to the right to modify, such as this side to the name of 111 people, the age to 111 years old then
Left write {"name": "111"} to the right of {"name": "111", "Age": 111},
On the left, click Find below to see the information about the name in the document,
Click Update1 to make changes,
1: When selected here, click Update1 will first look at this data, if not inserted, at this time, the left does not need to write
5.1 inserting Data
The data inserted here is the BJOSN format, the key value pair
"Key": Value
Key is the name of the field to be inserted, Vlaue is the corresponding value, and if there are multiple values, you can use [] surround 6.1 to copy the document to the same collection
After clicking,
7.1 Copying a collection to a different database