MongoDB面试常见问题篇

MongoDB (6.4万) 2019-09-29 15:39:30

**题目**:MongoDB哪个命令可以切换数据库

#### **参考答案**:

MongoDB 用use+数据库名称的方式来创建数据库。use会创建一个新的数据库,如果该数据库存在,则返回这个数据库。

>use database_name

THE END

Leave a Reply

下一篇

已是最新文章


Warning: unlink(/www/wwwroot/tiejiang.org/wp-content/cache/wpzt_/df/1b13fb0cf3ee24d2cb97387df73886.tpl): No such file or directory in /www/wwwroot/tiejiang.org/wp-content/themes/WPZT-JUST/vendor/topthink/think-cache/src/cache/driver/File.php on line 290