2012-01-28 244 views
0

“秀”语句时,我想知道什么是数据库MongoDB中,并在数据库中收集了什么我用什么命令(相当于show tables声明SQL)?我只在文档中找到{dbStats:1},这些文档只能显示当前数据库的信息,而没有收集列表。我该怎么做MongoDB中

回答

1

看到official document

show dbs   displays all the databases on the server you are connected to 
use db_name   switches to db_name on the same server 
show collections displays a list of all the collections in the current database