- Mongoexport find where the file folder, select the folder, right-shift, selected to play in the command window here
- Enter cmd window, enter the following command
- mongoexport -d douban -c top250 --csv -f id,place,level,time,quote,name -o douban.csv
- d douban c top250 name for the database table name for the new field to be exported to f o is the export table name
- The exported file is stored in the bin folder, you will find garbled
- Use Notepad to open and then save select UTF-8 that is not an exaggeration to open excel
mongodb Database Export csv file
Guess you like
Origin www.cnblogs.com/changgf/p/12327880.html
Ranking