当前位置:网站首页>[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
边栏推荐
- 炒股开户佣金优惠怎么才能获得,网上开户安全吗
- Day30-t540-2022-02-14-don't answer by yourself
- [MySQL] classification of multi table queries
- Interpretation of corolla sub low configuration, three cylinder power configuration, CVT fuel saving and smooth, safety configuration is in place
- [issue 16] golang's one-year experience in developing Purdue Technology
- Esp-idf turns off serial port log output.
- 2022 free examination questions for hoisting machinery command and hoisting machinery command theory examination
- Pyqt5 sensitive word detection tool production, operator's Gospel
- Selenium library 4.5.0 keyword explanation (I)
- China standard gas market prospect investment and development feasibility study report 2022-2028
猜你喜欢
JDBC Technology
Schematic diagram of crystal oscillator clock and PCB Design Guide
2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
Idea set class header comments
How to make recv have a little temper?
Runtime. getRuntime(). totalMemory/maxMemory()
[source code] VB6 chat robot
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
2022 free examination questions for hoisting machinery command and hoisting machinery command theory examination
2/14 (regular expression, sed streaming editor)
随机推荐
Gossip about redis source code 82
2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
The first game of the new year, many bug awards submitted
C # basic knowledge (2)
Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028
Docking Alipay process [pay in person, QR code Payment]
What is the Valentine's Day gift given by the operator to the product?
JDBC Technology
股票开户最低佣金炒股开户免费,网上开户安全吗
Selenium library 4.5.0 keyword explanation (4)
IO flow principle and classification
D27:mode of sequence (maximum, translation)
Selenium library 4.5.0 keyword explanation (III)
X Opencv feature point detection and matching
炒股开户佣金优惠怎么才能获得,网上开户安全吗
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
想请教一下,十大劵商如何开户?在线开户是安全么?
Runtime. getRuntime(). totalMemory/maxMemory()
[note] IPC traditional interprocess communication and binder interprocess communication principle
Gossip about redis source code 81