mongodb查询语法
左边是mongodb查询语句,右边是sql语句。对照着用,挺方便。
db.users.find() select * from users
db.users.find({“age” : 27}) select * from users where age = 27
db.users.find({“username” : “joe”, “age” : 27}) select * from users where “username” = “joe” and age = 27
db.users.find({},
原创
2021-10-21 19:11:34 ·
1040 阅读 ·
0 评论