mongodb模糊查询

  sre

5fcb164a45a5f3265.jpg_fo742.png

#mysql:
select * from student where name like ’%test%’
#mongo
db.student.find({name:{:/test/})}
#mysql:
select * from student where name regexp ’test’
#mongo:
db.student.find({name:/test/)}

LEAVE A COMMENT

Captcha Code