MongoDB 的 db.collection.drop() 用于从数据库中删除集合,删除集合collection语法如下:db.COLLECTION_NAME.drop()首先,检查数据库 test 中可用的集合。>use test switched to db test > show collections mycol mycollection newcollection 现...
时光匆匆,记录是对思维的沉淀;
MongoDB 的 db.collection.drop() 用于从数据库中删除集合,删除集合collection语法如下:db.COLLECTION_NAME.drop()首先,检查数据库 test 中可用的集合。>use test switched to db test > show collections mycol mycollection newcollection 现...