Insert multiple tab-delimited text files into MySQL with Python?

前端 未结 1 548
南笙
南笙 2021-01-07 13:27

I am trying to create a program that takes a number of tab delaminated text files, and works through them one at a time entering the data they hold into a MySQL database. Th

相关标签:
1条回答
  • 2021-01-07 13:51

    MySQL can read TSV files directly using the mysqlimport utility or by executing the LOAD DATA INFILE SQL command. This will be faster than processing the file in python and inserting it, but you may want to learn how to do both. Good luck!

    0 讨论(0)
提交回复
热议问题