469,344 Members | 5,642 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

Inserting the contents of csv file using python mysqldb

I have tried both the LOAD DATA and the INSERT methods. I have searched the web for previous (2003, 2005, 2008, etc) similar questions and answers (none of the answers work - I keep getting syntax errors). What is the correct syntax for reading the contents of a csv file and inserting the contents into a mysqldb table? I have python 2.7 loaded on debian-lenny.
Jun 17 '11 #1
1 1590
Mariostg
332 100+
You should really give us the sql statement you used as well as the error message you get.
Jun 22 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Serge Guay | last post: by
2 posts views Thread by adityabhambri | last post: by
3 posts views Thread by sophie_newbie | last post: by
2 posts views Thread by Krishna | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.