File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ db // 打印当前数据库
30
30
use <database_name>
31
31
```
32
32
33
- ### 显示收藏
33
+ ### 显示集合
34
34
35
35
``` mongodb
36
36
show collections
50
50
51
51
``` mongodb
52
52
db.coll.insertOne({ name: "Max" })
53
- db.coll.insert([{ name: "Max"}, {name:"Alex"}]) // 订购批量插入
53
+ db.coll.insert([{ name: "Max"}, {name:"Alex"}]) // 批量插入
54
54
db.coll.insert([{ name: "Max"}, {name:"Alex"}], {ordered: false}) // 无序批量插入
55
55
db.coll.insert({ date: ISODate()})
56
56
db.coll.insert({ name: "Max"}, {"writeConcern": {"w": "majority", "wtimeout": 5000}})
@@ -70,7 +70,7 @@ Commands | Description
70
70
71
71
Operator | Description | Commands
72
72
:-- | --- | ---
73
- ` $gt ` | 比...更棒 | ` db.docx.find({class:{$gt:'T'} `
73
+ ` $gt ` | 大于 | ` db.docx.find({class:{$gt:'T'} `
74
74
` $gte ` | 大于等于 | ` db.docx.find({class:{$gt:'T'} `
75
75
` $lt ` | 小于 | ` db.docx.find({class:{$lt:'T'} `
76
76
` $lte ` | 小于等于 | ` db.docx.find({class:{$lte:'T'} `
You can’t perform that action at this time.
0 commit comments