首先添加几个文档: dvd = ({"Type":"DVD","Title":"Matrix,The","Released":1994,"Cast":["Keanu Reeves","Carrie-Anne Moss","Laurence Fishburne","Hugo Weaving","Glo Read More
posted @ 2018-03-11 12:00 渡~solong Views(133) Comments(0) Diggs(0) Edit
1查看当前数据库的文档 输入: db.media.find() 系统返回:{ "_id" : ObjectId("5aa490f053350e04ddbd6fa6"), "Type" : "Book", "Title" : "Definitive Guide to MongoDB 3rd ed.", Read More
posted @ 2018-03-11 11:37 渡~solong Views(156) Comments(0) Diggs(0) Edit
MongoDB通过find()函数执行查询操作 1.查找集合内的全部文档: db.media.find() 系统返回: { "_id" : ObjectId("5aa47c1953350e04ddbd6fa3"), "Type" : "Book", "Title" : "Definitive Gui Read More
posted @ 2018-03-11 09:41 渡~solong Views(172) Comments(0) Diggs(0) Edit
插入数据: MongoDB使用insertOne函数插入一条数据 如: 1.先用document指定插入的数据: document = ({"Type":"Book","Title":"Definitive Guide to MongoDB 3rd ed.","ISBN":"978-1-4842-1 Read More
posted @ 2018-03-11 09:11 渡~solong Views(395) Comments(0) Diggs(0) Edit