Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the syntax to create a collection and to drop a collection in mongodb?



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

Post New Answer

More MongoDB Interview Questions

What is the difference between mongodb and cassandra?

1 Answers  


When do we use namespace in mongodb?

1 Answers  


Why is it called mongodb?

1 Answers  


Is it possible to configure the cache size for mmapv1 in mongodb?

1 Answers  


When was mongodb created?

1 Answers  


Is mongodb free for commercial?

1 Answers  


How do I start mongodb locally?

1 Answers  


Is mongodb good for large data?

1 Answers  


Who are mongodb competitors?

1 Answers  


Does mongodb database have tables for storing records?

1 Answers  


How does mongodb replication work?

1 Answers  


What is mongodb atlas?

1 Answers  


Categories