mongodb如何查看当前所在库

要在 MongoDB 中详细查看当前所在的数据库,您可以使用以下命令:

```bash

db.getName()

```

这将返回当前所在的数据库名称。

阅读剩余
THE END