Google News
logo
MongoDB - Quiz(MCQ)
Which of the following operation is used to switch to new database mydb?
A)
use db
B)
use mydb
C)
use dbs
D)
use mydbs

Correct Answer :   use mydb


Explanation : Confirm that your session has the mydb database as context, by checking the value of the db object, which returns the name of the current database.

Advertisement