Difference between revisions of "MongoDB CreateCollection"
From mi-linux
Jump to navigationJump to search(19 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== Create a Collection == | == Create a Collection == | ||
− | If a collection does not exist, MongoDB | + | If a collection does not exist, MongoDB will automatically create the collection when you first store data for that collection. |
− | + | When you first use MongoDB you will find you have no collections: | |
− | + | show collections | |
− | + | When you insert data in the next step, a collection will automatically be created for you. | |
− | + | == Next Step == | |
− | + | [[MongoDB_InsertData|Inserting]] data into the collection | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 10:27, 11 November 2017
Main Page >> MongoDB >>MongoDB Workbook >> Create Collections
Create a Collection
If a collection does not exist, MongoDB will automatically create the collection when you first store data for that collection.
When you first use MongoDB you will find you have no collections:
show collections
When you insert data in the next step, a collection will automatically be created for you.
Next Step
Inserting data into the collection