首页 > 数据库技术 > 详细

Drop a database in MongoDB

时间:2015-01-15 23:41:57      阅读:397      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!