内容简介:1、show dbs //显示所有数据库MongoDB默认有4个数据库:2、db //显示当前使用的数据库
1、show dbs //显示所有数据库
MongoDB默认有4个数据库:
- admin 存储数据库管理员的信息
- config 存储配置信息
- local
- test 默认使用的就是test数据库
2、db //显示当前使用的数据库
3、use dbname //切换到指定的数据库。如果该数据库不存在,会先自动创建。这个也是 MongoDB 创建数据库的命令。
4、db.dropDatabase() //删除当前数据库。db.表示操作的是当前数据库。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Paradigms of Artificial Intelligence Programming
Peter Norvig / Morgan Kaufmann / 1991-10-01 / USD 77.95
Paradigms of AI Programming is the first text to teach advanced Common Lisp techniques in the context of building major AI systems. By reconstructing authentic, complex AI programs using state-of-the-......一起来看看 《Paradigms of Artificial Intelligence Programming》 这本书的介绍吧!