📜  mongodb检查字段是否存在java代码示例

📅  最后修改于: 2022-03-11 14:52:41.258000             🧑  作者: Mango

代码示例1
DBObject query;
query = new BasicDBObject("fields_name", new BasicDBObject("$exists", true));
DBCursor result = collection.find(query);