标签:style strong ar 时间 new ef on app
头匹配:
{"title":new RegExp("^各地发起纪念周总理")}
任意位置匹配:
{"published":{$gte: "2013-05-01", $lt: "2013-06-10"}, "title":new RegExp(".*北京.*")}
{"published":{$gte: "2013-05-01", $lt: "2013-06-10"}}
{"published":{$gte: "2013-05-01", $lt: "2013-06-10"}, "title":new RegExp("^北京")}
BasicDBObject query = new BasicDBObject();
query.put("published", new BasicDBObject("$gte", "2013-05-01").append("$lt", "2013-06-11"));
query.put("title", new BasicDBObject("$regex", ".*北京.*"));
标签:style strong ar 时间 new ef on app
原文地址:http://www.cnblogs.com/Gingber/p/3922672.html