MongoDB Rename Collection
Use
Syntax:
Example:
For example, You have a collection with the wrong spelling “
Output:
MongoDB Rename Collection
Use
Syntax:
db.collection.renameCollection(target, dropTarget)
Example:
For example, You have a collection with the wrong spelling “
db.pproducts.renameCollection("products")
Output:
{ "ok" : 1 }
0 Comments
CAN FEEDBACK
Emoji