MongoDB模糊查询

模糊查询简介 MongoDB查询条件可使用正则表达式,从而实现模糊查询的功能。模糊 查询可使用$regex操做符或直接使用正则表达式对象。 MySQL MongoDB select * from student where  name like ’%joe%’ db.student.find( {name: {$regex:/joe/}}) select * from student where 
相关文章
相关标签/搜索