Write the syntax for creating a collection and dropping a collection in mongodb.
Answer / Sneha Kumari
[{"create": "use <database_name>ndb.createCollection('<collection_name>')", "drop": "db.<database_name>.dropCollection('<collection_name>')
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the role of use command?
How to install mongodb on our machine?
What do you mean by a replica set in mongodb?
In mongodb how do you use $set to update a nested value?
What is orm mongodb?
How to set primary key in mongoose?
What is storage engine in mongodb?
What is the difference between mongodb and couchdb?
what is objecld composed of?
What is a ‘namespace’?
What is the difference between mongodb and mysql?
What is mongoose odm?
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)