Database_name is a MongoDB command is used for ___

28. Database_name is a MongoDB command is used for ___.

  1. Database Creation
  2. Dropping Databases
  3. Creating a Collection
  4. All of the mentioned above

Answer: A) Database Creation

Explanation:

MongoDB does not have any methods for creating databases. When you save values into the defined collection for the first time, it automatically creates a database in the background. Database name is a MongoDB command that is used for the creation of databases. If a database with the name 'database name' does not already exist, this will create one. If it does exist, it will be chosen for further consideration.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.