show dbs和show数据库之间的MongoDB区别?

show dbs和show数据库之间没有区别。这两个命令都在内部调用listDatabases命令。

show dbs命令如下-

> show dbs

这将产生以下输出-

admin                 0.002GB

app                   0.000GB

business              0.000GB

config                0.000GB

local                 0.000GB

main                  0.000GB

my                    0.001GB

ok                    0.001GB

sample                0.003GB

sampleDemo            0.000GB

studentSearch         0.000GB

test                  0.034GB

university            0.000GB

web                   0.003GB

webcustomertracker    0.000GB

show database命令如下-

> show databases

这将产生以下输出-

admin                0.002GB

app                  0.000GB

business             0.000GB

config               0.000GB

local                0.000GB

main                 0.000GB

my                   0.001GB

ok                   0.001GB

sample               0.003GB

sampleDemo           0.000GB

studentSearch        0.000GB

test                 0.034GB

university           0.000GB

web                  0.003GB

webcustomertracker   0.000GB

以上是 show dbs和show数据库之间的MongoDB区别? 的全部内容, 来源链接: utcz.com/z/331431.html

回到顶部