importing csv file into sqlite

Peter Otten __peter__ at web.de
Fri Dec 19 11:32:28 CET 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