摘要: //1.insertOne 插入单条数据 //1.删除集合 db.c01.drop(); //2.定义要插入的文档 var doc= [ {insertOne:{document:{_id:1,name:'lcs',sex:1,age:35,phone:'18800010001',salary:25 阅读全文
posted @ 2023-03-29 12:25 longx888 阅读(41) 评论(0) 推荐(0)
摘要: //1.创建函数 function f_getfield(coll_name) { mr = db.runCommand({ "mapreduce": coll_name, "map": function() { for (var key in this) { emit(key, null); } 阅读全文
posted @ 2023-03-28 18:35 longx888 阅读(190) 评论(0) 推荐(0)