1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| > db.employee.insertMany([ {e_id:"emp001", k_id:"ka1", p_id:"po1", name:"高山", age:31, salary:400000}, {e_id:"emp002", k_id:"ka2", p_id:"po2", name:"生駒", age:37, salary:250000}, {e_id:"emp003", k_id:"ka3", p_id:"po3", name:"嘉喜", age:23, salary:200000}, {e_id:"emp004", k_id:"ka4", p_id:"po4", name:"与田", age:33, salary:100000}, {e_id:"emp005", k_id:"ka3", p_id:"po4", name:"松田", age:35, salary:550000}, {e_id:"emp006", k_id:"ka4", p_id:"po4", name:"菅井", age:45, salary:120000} ]) { "acknowledged" : true, "insertedIds" : [ ObjectId("612f07f568110fe533ed9d21"), ObjectId("612f07f568110fe533ed9d22"), ObjectId("612f07f568110fe533ed9d23"), ObjectId("612f07f568110fe533ed9d24"), ObjectId("612f07f568110fe533ed9d25"), ObjectId("612f07f568110fe533ed9d26") ] }
> db.employee.find({}, {_id:0}) { "e_id" : "emp001", "k_id" : "ka1", "p_id" : "po1", "name" : "高山", "age" : 31, "salary" : 400000 } { "e_id" : "emp002", "k_id" : "ka2", "p_id" : "po2", "name" : "生駒", "age" : 37, "salary" : 250000 } { "e_id" : "emp003", "k_id" : "ka3", "p_id" : "po3", "name" : "嘉喜", "age" : 23, "salary" : 200000 } { "e_id" : "emp004", "k_id" : "ka4", "p_id" : "po4", "name" : "与田", "age" : 33, "salary" : 100000 } { "e_id" : "emp005", "k_id" : "ka3", "p_id" : "po4", "name" : "松田", "age" : 35, "salary" : 550000 } { "e_id" : "emp006", "k_id" : "ka4", "p_id" : "po4", "name" : "菅井", "age" : 45, "salary" : 120000 }
|