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

边栏推荐
- Bufferpool caching mechanism for executing SQL in MySQL
- 2022.02.13
- I wrote a chat software with timeout connect function
- Gossip about redis source code 76
- Errors taken 1 Position1 argument but 2 were given in Mockingbird
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- [untitled]
- Gossip about redis source code 79
- The first game of the new year, many bug awards submitted
- 想请教一下,十大劵商如何开户?在线开户是安全么?
猜你喜欢

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

Investment demand and income forecast report of China's building ceramics industry, 2022-2028

Cgb2201 preparatory class evening self-study and lecture content

A treasure open source software, cross platform terminal artifact tabby
![[MySQL] classification of multi table queries](/img/96/2e51ae8d52ea8184945e0540ce18f5.jpg)
[MySQL] classification of multi table queries

Alibaba cloud container service differentiation SLO hybrid technology practice

A preliminary study on the middleware of script Downloader

2022 t elevator repair registration examination and the latest analysis of T elevator repair

Qtoolbutton - menu and popup mode

Actual combat | use composite material 3 in application
随机推荐
The first game of the new year, many bug awards submitted
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
A preliminary study on the middleware of script Downloader
Recursion and recursion
Idea integrates Microsoft TFs plug-in
Sword finger offer day 4 (Sword finger offer 03. duplicate numbers in the array, sword finger offer 53 - I. find the number I in the sorted array, and the missing numbers in sword finger offer 53 - ii
Gossip about redis source code 81
[untitled]
Distributed transaction -- middleware of TCC -- selection / comparison
URLEncoder. Encode and urldecoder Decode processing URL
D29:post Office (post office, translation)
Gossip about redis source code 75
Pyqt5 sensitive word detection tool production, operator's Gospel
"Learning notes" recursive & recursive
ADB command to get XML
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Hcip day 12 notes
How to understand the gain bandwidth product operational amplifier gain
What is the Valentine's Day gift given by the operator to the product?
Hcip day 14 notes