当前位置:网站首页>[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

边栏推荐
- SPI based on firmware library
- C # basic knowledge (2)
- Qtoolbutton - menu and popup mode
- Selenium library 4.5.0 keyword explanation (I)
- Interesting 10 CMD commands
- The difference between single power amplifier and dual power amplifier
- NPM script
- The interviewer's biggest lie to deceive you, bypassing three years of less struggle
- Selenium check box
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
猜你喜欢

Idea integrates Microsoft TFs plug-in

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
![[network security] what is emergency response? What indicators should you pay attention to in emergency response?](/img/ff/c733ffbb922760910ab09af3ae2886.jpg)
[network security] what is emergency response? What indicators should you pay attention to in emergency response?

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

JDBC Technology

Cgb2201 preparatory class evening self-study and lecture content

QT creator source code learning note 05, how does the menu bar realize plug-in?

2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) simulated examination and Guangdong Provincial Safety Officer a certificate third batch (main person in charg

How to quickly build high availability of service discovery

Tencent interview: can you find the number of 1 in binary?
随机推荐
Amway by head has this project management tool to improve productivity in a straight line
How to make recv have a little temper?
Is the controller a single instance or multiple instances? How to ensure the safety of concurrency
I wrote a chat software with timeout connect function
2/14 (regular expression, sed streaming editor)
Gossip about redis source code 76
Live app source code, jump to links outside the station or jump to pages inside the platform
QT creator source code learning note 05, how does the menu bar realize plug-in?
Hcip day 12 notes
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Interesting 10 CMD commands
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
[15th issue] Tencent PCG background development internship I, II and III (OC)
Unsafe and CAS principle
IO flow principle and classification
[Happy Valentine's day] "I still like you very much, like sin ² a+cos ² A consistent "(white code in the attached table)
Exclusive download! Alibaba cloud native brings 10 + technical experts to bring "new possibilities of cloud native and cloud future"
URLEncoder. Encode and urldecoder Decode processing URL
Selenium check box
2022 a special equipment related management (elevator) examination questions and a special equipment related management (elevator) examination contents