var rds = db.REGIPATIENTREC.find({mzh:{$lt:"0"},usrOrg:"石景山中西医结合医院"}); var show = function(value,index,ar){ var rds = db.REGIPATIENTREC.find({"_id": value._id});while(rds.hasNext()){ var rd = rds.next(); var stime =…
for (var i = 1; i <= 100000; i++) { db.testdata2.insert( { x : i , name: "MACLEAN" , name1:"MACLEAN", name2:"MACLEAN", name3:"MACLEAN"} ) } use testdata2 for(var i=1;i<=10000;i++){db.data.insert({ x:i,n…
查询: MySQL: SELECT * FROM user Mongo: db.user.find() MySQL: SELECT * FROM user WHERE name = ’starlee’ Mongo: db.user.find({‘name’ : ’starlee’}) 插入: MySQL: INSERT INOT user (`name`, `age`) values (’starlee’,25) Mongo: db.user.insert({‘name’ : ’starlee’…