MySQL LOAD DATA LOCAL INFILE example in python?
Posted
by David Perron
on Stack Overflow
See other posts from Stack Overflow
or by David Perron
Published on 2009-08-05T08:36:26Z
Indexed on
2010/05/10
11:14 UTC
Read the original article
Hit count: 377
I am looking for a syntax definition, example, sample code, wiki, etc. for executing a LOAD DATA LOCAL INFILE command from python.
I believe I can use mysqlimport as well if that is available, so any feedback (and code snippet) on which is the better route, is welcome. A Google search is not turning up much in the way of current info
The goal in either case is the same: Automate loading hundreds of files with a known naming convention & date structure, into a single MySQL table.
David
© Stack Overflow or respective owner