码迷,mamicode.com
首页 > 数据库 > 详细

【MongoDB】mongoimport and mongoexport of data (一)

时间:2014-10-28 02:07:13      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:mongodb   database   数据导出   export   

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;

bubuko.com,布布扣

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

bubuko.com,布布扣

bubuko.com,布布扣


The content of the txt is as follows:

bubuko.com,布布扣


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


bubuko.com,布布扣


【MongoDB】mongoimport and mongoexport of data (一)

标签:mongodb   database   数据导出   export   

原文地址:http://blog.csdn.net/sxb0841901116/article/details/40522103

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!