1.查看集合 show collections 2.向集合中添加数据 db.runoob.insertMany([ { title:data1, url:http://blog.51cto.com/suyanzhu, description:this is data1 }, { title:data2, url:http://blog.51cto.com/suyanzhu, description:this is data2 } ]) 3.查看...
1.查看集合 show collections 2.向集合中添加数据 db.runoob.insertOne( { title:remove method, url:http://blog.51cto.com/suyanzhu, description:this is my blog } ) db.runoob.insertMany([ { title:data1, url:http://blog.51cto.com/suyanzhu, descri...
1.查看集合中数据,并进行格式 db.runoob.find().pretty() 2.删除所有数据 db.runoob.remove({}) 3.查看集合中的数据,并进行格式 db.runoob.find().pretty()...
1.查看集合 show collections 2.查看集合中数据 db.runoob.find().pretty() 3.删除找到的第一条记录 db.runoob.remove({title:demo multi},1) 4.查看集合中的数据,并进行格式 db.runoob.find().pretty()...
1.查看集合 show collections 2.查看集合中数据 db.runoob.find().pretty() 3.删除指定数据 db.runoob.remove({title:test update}) 4.查看集合中的数据,并进行格式 db.runoob.find().pretty()...
1.查看集合 show collections 2.查看集合中数据 db.runoob.find().pretty() 3.修改集合中多条数据 db.runoob.save({ _id: ObjectId(5bce9025cd35ce6f77bf0198), test:4 }) 4.查看集合中的数据,并进行格式 db.runoob.find().pretty()...
1.查看集合 show collections 2.向集合中添加数据 db.runoob.insertMany([ { title:data1, url:http://blog.51cto.com/suyanzhu, description:this is data1, view:5000 }, { title:data2, url:http://blog.51cto.com/suyanzhu, description:this is data2,...
1.查看集合 show collections 2.向集合中添加数据 db.runoob.insertMany([ { title:data1, url:http://blog.51cto.com/suyanzhu, description:this is data1, view:5000 }, { title:data2, url:http://blog.51cto.com/suyanzhu, description:this is data2,...
1.查看集合 show collections 2.向集合中添加数据 db.runoob.insertMany([ { title:data1, url:http://blog.51cto.com/suyanzhu, description:this is data1, view:5000 }, { title:data2, url:http://blog.51cto.com/suyanzhu, description:this is data2,...
大于 $gt greater than 大于等于 = $gte greater than equal 小于 $lt less than 小于等于 = $lte less than equal 不等于 != $ne not equal 等于 = $eq equal...