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 |
What is the difference between mongodb and cassandra?
When do we use namespace in mongodb?
Why is it called mongodb?
Is it possible to configure the cache size for mmapv1 in mongodb?
When was mongodb created?
Is mongodb free for commercial?
How do I start mongodb locally?
Is mongodb good for large data?
Who are mongodb competitors?
Does mongodb database have tables for storing records?
How does mongodb replication work?
What is mongodb atlas?
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)