码迷,mamicode.com
首页 > 数据库 > 详细

Drop a database in MongoDB

时间:2015-01-15 23:43:59      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

http://www.linuxask.com/questions/drop-a-database-in-mongodb

Drop a database in MongoDB

Answer:

Assuming you are going to drop the `test` database in MongoDB, follow the steps below to drop (delete) it.

>  use test
switched to db test

> db.dropDatabase()
{ "dropped" : "test.$cmd", "ok" : 1 }

Drop a database in MongoDB

标签:

原文地址:http://www.cnblogs.com/seasonzone/p/4227389.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!