What is the syntax to create a collection and to drop a collection in mongodb?
Answer / Parul Sonker
To create a collection, use the following command: `db.createCollection(collectionName)`. To drop a collection, use the following command: `db.collectionName.drop()`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is mongodb a language?
Is mongodb a framework?
What is the basic syntax to use index in mongodb?
Is mongodb faster than sql?
Can we store images in mongodb?
What is mongodb atlas?
Is mongodb compass open source?
in mongodb, What is crud?
How does mongodb provide consistency?
Is mongodb object oriented?
Is mongodb a data lake?
What is mongodb cluster?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)