wocaosinima 发表于 2018-10-26 13:10:55

【MongoDB学习笔记6】深入MongoDB的创建/插入(insert)

> db.post.insert([{"_id":0},{"_id":1},{"_id":2}]);  
BulkWriteResult({
  
      "writeErrors" : [ ],
  
      "writeConcernErrors" : [ ],
  
      "nInserted" : 3,
  
      "nUpserted" : 0,
  
      "nMatched" : 0,
  
      "nModified" : 0,
  
      "nRemoved" : 0,
  
      "upserted" : [ ]
  
})
  
>


页: [1]
查看完整版本: 【MongoDB学习笔记6】深入MongoDB的创建/插入(insert)