随笔分类 -  MongoDB

摘要:$eq = (等于) $gt > (大于) $gte >= (大于等于) $lt < (小于) $lte <= (小于等于) $ne != (不等于) $in in (in) $nin !in (not in) 阅读全文
posted @ 2018-12-13 10:19 Waa1 阅读(2916) 评论(0) 推荐(0) 编辑
摘要:ObjectId介绍 在MongoDB中,文档(document)在集合(collection)中的存储需要一个唯一的_id字段作为主键。这个_id默认使用ObjectId来定义,因为ObjectId定义的足够短小,并尽最大可能的保持唯一性,同时能被快速的生成。 ObjectId 是一个 12 By 阅读全文
posted @ 2018-12-12 17:50 Waa1 阅读(1836) 评论(0) 推荐(0) 编辑