top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

MonogDB : Why every time user has to use "db" rather than using an actual database name ?

+2 votes
485 views

I have couple of databases named as abc, xyz. If I want to use database "xyz" then type command "use xyz". Command in console show output as "switched to db xyz" but still an user uses commands start with "db" rather than actual name "xyz" why ?

posted Jul 12, 2015 by Alok

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

it is because 'db' refers to current database name so all operations executes inside current database rather than any other database.

answer Feb 7, 2016 by Shivam Kumar Pandey
Similar Questions
0 votes

Please explain me the basics of mongo db? Also telll me when to Use MongoDB Rather than MySQL (or Other RDBMS)

+1 vote

I recently came to know that mongodb doesn't support when we use it for banking transaction software system,is it true? if yes then what other nosql databases that we can use instead of sql database?

...