mongodb
睡醒再想ID
爱生活 爱码
展开
-
hyperf-mongo
GitHub - Reasno/fastmongo: ???? Plug & Play Mongodb driver for Hyperf (With Coroutine!)$condition = [];$condition["id"] = ['$exists' => 1];$condition["array.ids"] = ['$in' => [1,2];$condition["keyword"] = ['$regex' => ".*{$keyword}.*"]原创 2021-10-13 09:04:26 · 451 阅读 · 0 评论 -
php mongodb 常用查询
// 等值查询 where name = "an"$querys = ["name" => "shian"];// 数值大于 where number > 5$querys = ["number" => ['$gt' => 5]];// 数值大于或等于 where number >= 2$querys = ["number" => ['$gte' => 2]];// 数值小于 where number < 5$querys = ["nu.转载 2021-09-30 15:08:39 · 393 阅读 · 0 评论