随笔分类 - mongodb
摘要:mongoimport --db test --collection item --jsonArray item.json
阅读全文
摘要:mongoexport -d test -c item --type=csv -f salary,city,workYear,companyShortName -o user.csvmongoexport -d test -c user --type=csv -f tel,type,userName
阅读全文
摘要:在用mongoexport导出csv文件时,发现数据库中的中文在excel中都显示为乱码,用notepad打开则正常。 解决办法: 在notepad中,将编码格式改为UTF-8,保存,再用excel打开,则中文可正常显示。
阅读全文