0

我有一个巨大的 excel 文件(~6GB),我不得不分成多个文件。现在我需要能够获取每个文件并将其上传到 MySQL 数据库中,以便我可以搜索它。每行显示的格式如下:

6003393,"Walgreens","670 N Lake Ave","Pasadena","CA","91101-1220","Los Angeles","6265858926","","","","","","","20 to 49","2.5 to 5 million","591205","Pharmacies & Drug Stores"

我将如何使用这么多数据有效地做到这一点?

谢谢你。

4

1 回答 1

2

查看LOAD DATA INFILE语法。只要您的 CSV 格式正确,它就应该能够加载所有内容……最终。

于 2012-05-03T21:24:25.900 回答