MongoDB刪除數據庫和刪除集合

一 MongoDB刪除數據庫 一、MongoDB 刪除數據庫的語法格式以下: db.dropDatabase() 刪除當前數據庫,默認爲 test,你能夠使用 db 命令查看當前數據庫名。 二、實例 如下實例咱們刪除了數據庫  students 。 首先,查看全部數據庫: > show dbs local 0.000GB students 0.000GB test 0.000GB 接下來咱們切換到
相關文章
相關標籤/搜索