从CSV文件读取并将特定/选定的列写入mysql [英] Read from CSV file and write specific/selected columns to mysql

查看:55
本文介绍了从CSV文件读取并将特定/选定的列写入mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有45列和50-100 000行之间的CSV文件.我想解析这些csv文件中的数据,并将其存储到数据库中.在这45列中,我需要在所有行中使用10-14行.我该如何过滤阅读或编写 多余的行?

I have 45 columns and between 50-100 000 lines CSV files. I'd like to parse the data from these csv files and store it into a database. Out of these 45 columns I need to use 10-14 rows with all the lines. How could I filter out on reading or writing the redundant rows?

谢谢!

推荐答案

您是否看过他们的文档?

Have you looked at their docs on this?

https://dev.mysql.com/doc/refman/5.7/en /load-data.html


这篇关于从CSV文件读取并将特定/选定的列写入mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆