当前位置:网站首页>[Mongodb] 2. Use mongodb --------- use compass
[Mongodb] 2. Use mongodb --------- use compass
2022-07-03 23:43:00 【weiweicn!】
Create a database : spot ’create database’

comment1: Equivalent to a project
users: It's like a watchstay comment1 Create a new table in :comments: spot ’create collection’

stay users Add data to
- stay users Click in the table ‘Insert Document’

2) Input json Formatted data :
3) insert data : Click on insert after , as follows ( _id Automatic generation , Guarantee the uniqueness of data )
- stay users Click in the table ‘Insert Document’
Query data : Inquire about city yes beijing The data of
- stay filter Input in {city: ‘beijing’}
2) Click on find, You can find
- stay filter Input in {city: ‘beijing’}
Query data ( Multiple conditions city:shanghai, username: ‘zhangsan’):
1) stay filter Input in {city: ‘shanghai’, username: ‘zhangsan’}- Click on find, You can find
Sort
1) It opens at ‘OPTIONS’
2) stay SORT Enter what fields to sort by , If the value is positive , Is positive , The value is negative. , Is flashback . Such as : Flashback by age

边栏推荐
- How to prevent malicious crawling of information by one-to-one live broadcast source server
- QT creator source code learning note 05, how does the menu bar realize plug-in?
- 股票开户佣金最低的券商有哪些大家推荐一下,手机上开户安全吗
- [untitled]
- C # basic knowledge (2)
- 2022 examination of safety production management personnel of hazardous chemical production units and examination skills of safety production management personnel of hazardous chemical production unit
- Gossip about redis source code 78
- How about opening an account at Hengtai securities? Is it safe?
- ADB command to get XML
- Generic tips
猜你喜欢

"Learning notes" recursive & recursive

Tencent interview: can you pour water?

I wrote a chat software with timeout connect function

Exclusive download! Alibaba cloud native brings 10 + technical experts to bring "new possibilities of cloud native and cloud future"

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?

Smart fan system based on stm32f407

Analysis on the scale of China's smart health industry and prediction report on the investment trend of the 14th five year plan 2022-2028 Edition

Shiftvit uses the precision of swing transformer to outperform the speed of RESNET, and discusses that the success of Vit does not lie in attention!

Common mode interference of EMC

Alibaba cloud container service differentiation SLO hybrid technology practice
随机推荐
2/14 (regular expression, sed streaming editor)
How to make recv have a little temper?
Gossip about redis source code 74
Open 2022 efficient office, starting from project management
Hcip day 14 notes
Day30-t540-2022-02-14-don't answer by yourself
Apple released a supplementary update to MacOS Catalina 10.15.5, which mainly fixes security vulnerabilities
股票开户佣金最低的券商有哪些大家推荐一下,手机上开户安全吗
Selenium library 4.5.0 keyword explanation (4)
What are the securities companies with the lowest Commission for stock account opening? Would you recommend it? Is it safe to open an account on your mobile phone
What is the Valentine's Day gift given by the operator to the product?
How to quickly build high availability of service discovery
Ramble 72 of redis source code
C # basic knowledge (3)
2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
2022 examination of safety production management personnel of hazardous chemical production units and examination skills of safety production management personnel of hazardous chemical production unit
Tencent interview: can you find the number of 1 in binary?
The difference between single power amplifier and dual power amplifier
Fashion cloud interview questions series - JS high-frequency handwritten code questions
URLEncoder. Encode and urldecoder Decode processing URL