switched to db ColTest
> show collections(展示该数据库下所有的集合)
{ "ok" : 1 }
test
> db.test.insert({"id":78,"name":"jane","sex","woman"});()
WriteResult({ "nInserted" : 1 })
> db.test.find();(查询test集合下面的所有数据)
{ "_id" : ObjectId("597741804c94dc71045af105"), "id" : 78, "name" : "jane", "sex" : "woman" }
> db.test.insert({"id":72,"name":"janlu","sex":"woman"});
WriteResult({ "nInserted" : 1 })
> db.test.insert({"id":97,"name":"ludy","sex","man"});
2017-07-25T21:04:01.169+0800 E QUERY [thread1] SyntaxError: missing : after property id @(shell):1:43
> db.test.find();
{ "_id" : ObjectId("597741ad4c94dc71045af106"), "id" : 72, "name" : "janlu", "sex" : "woman" }
WriteResult({ "nInserted" : 1 })
> db.test.find();
{ "_id" : ObjectId("597741ad4c94dc71045af106"), "id" : 72, "name" : "janlu", "sex" : "woman" }
{ "_id" : ObjectId("597741dd4c94dc71045af107"), "id" : 97, "name" : "ludy", "sex" : "man" }
{ "_id" : ObjectId("597741804c94dc71045af105"), "id" : 78, "name" : "jane", "sex" : "woman" }
WriteResult({ "nRemoved" : 1 })
{ "_id" : ObjectId("597741ad4c94dc71045af106"), "id" : 72, "name" : "janlu", "sex" : "woman" }
{ "_id" : ObjectId("597741dd4c94dc71045af107"), "id" : 97, "name" : "ludy", "sex" : "man" }
{ "_id" : ObjectId("597741ad4c94dc71045af106"), "id" : 72, "name" : "janlu", "sex" : "woman" }
{ "_id" : ObjectId("597741ad4c94dc71045af106"), "id" : 72, "name" : "janlu", "sex" : "woman" }
{ "_id" : ObjectId("597741dd4c94dc71045af107"), "id" : 97, "name" : "ludy", "sex" : "man" }
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
{ "_id" : ObjectId("597741ad4c94dc71045af106"), "id" : 90, "sex" : "man" }
{ "_id" : ObjectId("597741dd4c94dc71045af107"), "id" : 97, "name" : "ludy", "sex" : "man" }
基本操作,便于记住(哈哈)