MongoDB – Drop Database In this chapter, we will see how to drop a database using MongoDB command. The dropDatabase() Method MongoDB db.dropDatabase() command is used to drop a existing database. Syntax Basic syntax of dropDatabase() command is as follows − db.dropDatabase() This will delete the selected database. If you have not selected any database, […]
Author Archives: user
MongoDB – Advantages Any relational database has a typical schema design that shows number of tables and the relationship between these tables. While in MongoDB, there is no concept of relationship. Advantages of MongoDB over RDBMS Schema less − MongoDB is a document database in which one collection holds different documents. Number of fields, content […]
MongoDB – Datatypes MongoDB supports many datatypes. Some of them are − String − This is the most commonly used datatype to store the data. String in MongoDB must be UTF-8 valid. Integer − This type is used to store a numerical value. Integer can be 32 bit or 64 bit depending upon your server. […]