【MongoDB】mongoimport and mongoexport of data (一)

In the software development, we usually are faced with a common question of exporting or importing data from database. So in this blog we will together study the mongoddb export and mongodb import. 

一、 mongoImport 

First of all, let's create many test records;


and then we use the 'mongoexport -help ' command to query the main options. 




The content of the txt is as follows:


According to the query condition, the export file will be exported. 




原文地址:https://www.cnblogs.com/bhlsheji/p/5369165.html