MongoDB - Check the currently selected database

Professionaluser
Posted by Professionaluser under Sql Server category on | Points: 40 | Views : 197
SELECT db_name() command can be used in SQL Server to return the currently selected database name whereas MongoDB uses below command to return currently used/selected database

>db 


Output:
TestDatabase

Comments or Responses

Login to post response