查询命令

mac2022-07-05  13

查询某一条数据: db.getCollection('表名').find({'字段':取值})   查询多个文件下的值: db.getCollection('表名').find({'节点1.节点2.最终要查询字段':'取值'}) 模糊查询: db.student.find({name:{$regex:/joe/}}) db.student.find({name:/joe/})​

转载于:https://www.cnblogs.com/askill/p/10373247.html

最新回复(0)