mongoimport -h 127.0.0.1 -d dbname -c test --type csv --file /home/nodeid.csv --headerline --upsert
-h mongo 连接ip
-d 数据库名 databasename
-c 集合名 collection
--type 导入类型
--file 文件路径
--匹配 csv类型用,表头
--upsert 更新或插入
该博客主要围绕MongoDB导入CSV文件展开,虽未给出具体内容,但核心是此信息技术操作,涉及数据库与数据导入相关知识。
mongoimport -h 127.0.0.1 -d dbname -c test --type csv --file /home/nodeid.csv --headerline --upsert
-h mongo 连接ip
-d 数据库名 databasename
-c 集合名 collection
--type 导入类型
--file 文件路径
--匹配 csv类型用,表头
--upsert 更新或插入

被折叠的 条评论
为什么被折叠?