📜  MongoDb Create - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:39.935000             🧑  作者: Mango

代码示例2
1    db.coll.insertOne({name: "Max"})
2    db.coll.insert([{name: "Max"}, {name:"Alex"}]) // ordered bulk insert
3    db.coll.insert([{name: "Max"}, {name:"Alex"}], {ordered: false}) // unordered bulk insert
4    db.coll.insert({date: ISODate()})
5    db.coll.insert({name: "Max"}, {"writeConcern": {"w": "majority", "wtimeout": 5000}})