Answers to how to check the second character match in mongoDB. in sql we are using like '_a%'. how to use in mongoDB? ( 1 )

  1. 2016-09-11 15:09

    you should use syntax like below:-

    db.users.find({"name": /.a./}) or like >> db.users.find({"name": /a/})

    if you want to search for character "a"

Leave a reply to - how to check the second character match in mongoDB. in sql we are using like '_a%'. how to use in mongoDB?

◀ Go back