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

边栏推荐
- Open 2022 efficient office, starting from project management
- Idea set class header comments
- Enter MySQL in docker container by command under Linux
- Loop compensation - explanation and calculation of first-order, second-order and op amp compensation
- 2022 t elevator repair registration examination and the latest analysis of T elevator repair
- Analysis of refrigeration and air conditioning equipment operation in 2022 and examination question bank of refrigeration and air conditioning equipment operation
- Pandaoxi's video
- Minimum commission for stock account opening. Stock account opening is free. Is online account opening safe
- NPM script
- [untitled]
猜你喜欢

MLX90614 driver, function introduction and PEC verification

How to quickly build high availability of service discovery

Hcip day 12 notes

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

2022 free examination questions for hoisting machinery command and hoisting machinery command theory examination

Hcip 13th day notes

How to quickly build high availability of service discovery

A preliminary study on the middleware of script Downloader

Bufferpool caching mechanism for executing SQL in MySQL

The first game of the new year, many bug awards submitted
随机推荐
Gossip about redis source code 77
Alibaba cloud container service differentiation SLO hybrid technology practice
[note] IPC traditional interprocess communication and binder interprocess communication principle
Amway by head has this project management tool to improve productivity in a straight line
炒股開戶傭金優惠怎麼才能獲得,網上開戶安全嗎
Xiangong intelligent obtained hundreds of millions of yuan of b-round financing to accelerate the process of building non-standard solutions with standardized products
Pyqt5 sensitive word detection tool production, operator's Gospel
Scratch uses runner Py run or debug crawler
URLEncoder. Encode and urldecoder Decode processing URL
Schematic diagram of crystal oscillator clock and PCB Design Guide
[BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
D23:multiple of 3 or 5 (multiple of 3 or 5, translation + solution)
Selenium library 4.5.0 keyword explanation (II)
Bufferpool caching mechanism for executing SQL in MySQL
How to make recv have a little temper?
[Happy Valentine's day] "I still like you very much, like sin ² a+cos ² A consistent "(white code in the attached table)
Runtime. getRuntime(). totalMemory/maxMemory()
Hcip day 12 notes
Op amp related - link
Hcip 13th day notes