1. No storage 2. You can execute this command test again after passing db.dropDatabase(), and it will also return { ok: 1 }
use memberSystem
switched to db memberSystem
db.dropDatabase()
{ "dropped" : "memberSystem", "ok" : 1 }
db.dropDatabase()
{ "dropped" : "memberSystem", "ok" : 1 }
db.dropDatabase()
3. Mongodb will not determine whether the database exists when deleting, but directly performs the deletion process. As long as no error is reported, {ok:1} will be returned, even if there is no such database
1. No storage
2. You can execute this command test again after passing db.dropDatabase(), and it will also return { ok: 1 }
3. Mongodb will not determine whether the database exists when deleting, but directly performs the deletion process. As long as no error is reported, {ok:1} will be returned, even if there is no such database