MongoDB collection operation
Create Collection
db.createCollection(name, options)
- name: the name of the collection to be created
- options: An optional parameter specifying the relevant memory size and index options
View existing collection
show collections
show tables
When directly create documents, collections will be automatically created
Delete Collection
db.collection.drop()