9、查询name中包含 mongo的数据 db.userInfo.find({name:/mongo/});相当于% select*from userInfo where name like‘%mongo%';10、查询name中以mongo开头的 db.userInfo.find({name:/^mongo/});select*from userInfo...
4、db.userInfo.find({name:/mongo/})-查询 name 中包含 mongo 的数据,相当于 select*from userInfo where name like '%mongo%' 5、db.userInfo.find({name:/^mongo/})-查询 name 中以mongo开头的,相当于 select*...
9、查询name中包含 mongo的数据 db.userInfo.find({name:/mongo/});相当于% select*from userInfo where name like‘%mongo%’;10、查询name中以mongo开头的 db.userInfo.find({name:/^mongo/});select*from ...