mongo使用_id查询方法

2023年5月11日13:57:45 发表评论 678 views

使用_id来查询数据:
> db.foo.find({"_id" : ObjectId("544a3dc0d4646f0c8c904962")})

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: