mongo第三天

1. 查询器写在属性内部,修改器在外部

2. db.first.find({},{})
   db.first.find({age:{$lte:27,$gte:25}},{_id:0,name:1})
   查找 age大于等于25小于等于27的数据 。。。不显示_id ,显示name

3. db.first.find({age:{$ne:27}),{_id:0,name:1,age:1})
   查找 age不等于 27的数据

4.

猜你喜欢

转载自2819272.iteye.com/blog/2019983