GT's Blog
Code snippets, technical articles, tips on computing and programming...
MongoDB Like Query
We can do the following to achieve SQL's LIKE equivalent on a Query :
MongoDB : db.users.find({"name": /jo/})
MYSQL Equivalent: select * from users where name like '%jo%'
MongoDB - show all database in server
We can use following commands to view all databases in the server
show dbs
OR
show databases
Newer Posts
Older Posts
Home
Subscribe to:
Comments ( Atom )