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...


Write the syntax for creating a collection and dropping a collection in mongodb.



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

Post New Answer

More MongoDB Interview Questions

What is the basic syntax to use index in mongodb?

1 Answers  


What is a secondary or slave?

1 Answers  


In which language mongodb is written?

1 Answers  


How can you access different databases temporarily?

1 Answers  


What is the difference between mongodb and oracle?

1 Answers  


What happens when a shard is down or slow when querying?

1 Answers  


What is difference between mongodb and dynamodb?

1 Answers  


What is the syntax of mongodb collection?

1 Answers  


Is mongodb better than mysql? Explain

1 Answers  


What is the difference between $lt and $lte?

1 Answers  


Does mongodb support primary-key, foreign-key relationship?

1 Answers  


Is mongodb a relational database? Explain

1 Answers  


Categories