My Coding >
Databases >
MongDB >
MongoDB: import
MongoDB: importMongoDB have some tools for importing CSV and JSON datafiles. In this example we will import one of the standard dataset IRIS Import with mongoimportmongoimport is a standard tool for import datasets into MongDB. When mongodb database is installed, this tool is installed also Import CSV fileWe will use mongoimport to import file iris.csv. We will create or use database intro_db and in this database we will create collection iris1. File type is csv and we are using header line from this file:
Import JSON fileImporting JSON file is pretty similar to importuning CSV file, but JSON is more natural for MongoDB and as are result, the command line will be a bit simplier
|
Last 10 artitles
9 popular artitles
|
|
© 2020 MyCoding.uk -My blog about coding and further learning. This blog was writen with pure Perl and front-end output was performed with TemplateToolkit. |