摘要: mongoimport --db test --collection item --jsonArray item.json 阅读全文
posted @ 2018-03-04 22:52 酸奶加绿茶 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2018-03-04 22:46 酸奶加绿茶 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 在用mongoexport导出csv文件时,发现数据库中的中文在excel中都显示为乱码,用notepad打开则正常。 解决办法: 在notepad中,将编码格式改为UTF-8,保存,再用excel打开,则中文可正常显示。 阅读全文
posted @ 2018-03-04 22:44 酸奶加绿茶 阅读(977) 评论(0) 推荐(0) 编辑