📜  在 mongodb 堆栈溢出中创建集合 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:01.782000             🧑  作者: Mango

代码示例1
> use testdb
switched to db testdb
> db.createCollection("testcollection")
{ "ok" : 1 }
> db.getCollectionNames()
[ "system.indexes", "testcollection" ]
>