"MongoDB"-mongovue additions and deletions change the use of instructions

Source: Internet
Author: User

First, insert

1) Right click on the collection name-left click Insertdocument

2) Enter the JSON-formatted data in the popup dialog box and click Insert to complete the insertion.

Second, query

1) Select the collection you want to query, click Find;

Or click Find in the toolbar;

2) The query interface consists of four areas

{Find}: where the query criteria are entered, the query statement is case-sensitive;
The format is: {"Sendid": "000101"}, indicating the record of query sendid=000101;
When the query condition contains and, the format is: {"Sendid": "000101", "OPERPARAM5": "Vfre"}
When the query condition contains or, the format is: {$or: [{"Sendid": "000101"},{"Sendid": "1234567890"}]}
When the query condition contains like, the format is:
Operparam like '%set% ', {"Operparam": New RegExp (". Set.")}

{fields}: sets the field to be queried, does not fill in the default display of all fields, the field area format is: {"id": "", "Sendid": "", "AppId": ""}.

{sort} area: the area in which to set the sort method;
The format of the sort area is: {"id": 1} or {"id": -1},1 is sorted by ID in ascending order,-1 means sort by id descending.

The Limit is used to set how many records are returned, andskip is used to set how many records to skip.

Third, delete

Select the collection to be manipulated, click Remove to go to the delete panel, enter the query criteria to delete the data, click Remove, and confirm the deletion in the pop-up prompt box.

Iv. modification

Select the collection you want to manipulate, click Update to enter the Modify panel;

Enter the query condition on the left, enter the field name and value to be updated on the right;
Format such as: {$set: {"Sendid": "000102"}}

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"MongoDB"-mongovue additions and deletions change the use of instructions

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.