Skip to content

Commit

Permalink
doc: update mongodb.md (#343)
Browse files Browse the repository at this point in the history
fix some translation issues
  • Loading branch information
dfshizhiqiang committed Apr 9, 2023
1 parent 6f65262 commit e606837
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ db // 打印当前数据库
use <database_name>
```

### 显示收藏
### 显示集合

```mongodb
show collections
Expand All @@ -50,7 +50,7 @@ CRUD

```mongodb
db.coll.insertOne({ name: "Max" })
db.coll.insert([{ name: "Max"}, {name:"Alex"}]) // 订购批量插入
db.coll.insert([{ name: "Max"}, {name:"Alex"}]) // 批量插入
db.coll.insert([{ name: "Max"}, {name:"Alex"}], {ordered: false}) // 无序批量插入
db.coll.insert({ date: ISODate()})
db.coll.insert({ name: "Max"}, {"writeConcern": {"w": "majority", "wtimeout": 5000}})
Expand All @@ -70,7 +70,7 @@ Commands | Description

Operator | Description | Commands
:-- | --- | ---
`$gt` | 比...更棒 | `db.docx.find({class:{$gt:'T'}`
`$gt` | 大于 | `db.docx.find({class:{$gt:'T'}`
`$gte` | 大于等于 | `db.docx.find({class:{$gt:'T'}`
`$lt` | 小于 | `db.docx.find({class:{$lt:'T'}`
`$lte` | 小于等于 | `db.docx.find({class:{$lte:'T'}`
Expand Down

0 comments on commit e606837

Please sign in to comment.