blackcore

本质的东西,深植于骨骼,扎根于灵魂! 淘实惠,各类电子版书籍

导航

2013年1月10日 #

[MongoDB]How do I query for fields that have null values?

摘要: {column:null}:结果为column的值为null或记录不包含column字段的数据;{column:{$type:10}}:结果为记录包含column字段且值是null的数据;{column:{$exists:false}}:结果为记录不包含column字段的数据;Fields in a document may storenullvalues, as in a notional collection,test, with the following documents:{ _id: 1, cancelDate: null }{ _id: 2 }Different query op 阅读全文

posted @ 2013-01-10 13:40 blackcore 阅读(628) 评论(0) 推荐(0) 编辑