mongodb+php通过_id查询

来源:互联网 发布:嗨淘宝网 编辑:程序博客网 时间:2024/05/17 06:20

在php中通过_id 在mongodb中查找特定记录:

查询条件需要这样写:array("_id"=>new MongoId("$id"))


原创粉丝点击