importing csv file into sqlite

Peter Otten __peter__ at web.de
Fri Dec 19 05:32:28 EST 2008


James Mills wrote:

> values = ",".join(["\"%s\"" % x for x in line])
> print "INSERT INTO %s %s VALUES (%s);" % (table, fields, values)

http://xkcd.com/327/





More information about the Python-list mailing list