2012-01-28 230 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