From e606837a88fa1f0602058bf5382b2e3a887dac96 Mon Sep 17 00:00:00 2001 From: Zech Date: Sun, 9 Apr 2023 21:17:31 +0800 Subject: [PATCH] doc: update mongodb.md (#343) fix some translation issues --- docs/mongodb.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/mongodb.md b/docs/mongodb.md index 67082fa..0a23f64 100644 --- a/docs/mongodb.md +++ b/docs/mongodb.md @@ -30,7 +30,7 @@ db // 打印当前数据库 use ``` -### 显示收藏 +### 显示集合 ```mongodb show collections @@ -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}}) @@ -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'}`