- 時間區間查詢
db.collection.find({created_at:{$gte:ISODate("2020-05-28"), $lte:ISODate("2020-05-30")}})
2.不等於
db.collection.find({duration:{$ne:3}})
db.collection.find({created_at:{$gte:ISODate("2020-05-28"), $lte:ISODate("2020-05-30")}})
2.不等於
db.collection.find({duration:{$ne:3}})
【mongo 系列】mongodb 學習六,索引淺析 阿兵雲原生 2021-10-07 1,787 閱讀5分鐘 專欄: 開源組件專題