MongoDB $type 操作符

zhengzq64997 9 0 PDF 2020-12-23 07:12:34

MongoDB $type 操作符 描述 在本章节中,我们将继续讨论MongoDB中条件操作符 $type。 $type操作符是基于BSON类型来检索集合中匹配的数据类型,并返回结果。 MongoDB 中可以使用的类型如下表所示: 类型 数字 备注 Double 1 String 2 Object 3 Array 4 Binary data 5 Undefined 6 已废弃。 Object id 7 Boolean 8 Date 9 Null 10 Regular Expression 11 Jav

用户评论
请输入评论内容
评分:
暂无评论