2017年9月22日
摘要: 1、模糊查询 通过模糊查询,查找相关数据: db.test.find({name:/joe/}) 查询name字段含有joe的数据 等同于db.test.find({name:{$regex:'joe'}}) db.test.find({name:/joe/i}) 加了i,那么就不会区分大小写,都会 阅读全文
posted @ 2017-09-22 16:33 michellexiaoqi 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 正则运用:http://www.cnblogs.com/del/archive/2007/12/21/1008108.html 阅读全文
posted @ 2017-09-22 09:59 michellexiaoqi 阅读(172) 评论(0) 推荐(0) 编辑
摘要: MongoDB的模糊查询其实很简单: 11.LIKE模糊查询userName包含A字母的数据(%A%) SQL:SELECT * FROM UserInfo WHERE userName LIKE "%A%" MongoDB:db.UserInfo.find({userName :/A/}) 12. 阅读全文
posted @ 2017-09-22 08:55 michellexiaoqi 阅读(1585) 评论(0) 推荐(0) 编辑