importing csv file into sqlite
James Mills
prologic at shortcircuit.net.au
Fri Dec 19 06:50:04 EST 2008
On Fri, Dec 19, 2008 at 8:32 PM, Peter Otten <__peter__ at web.de> wrote:
> 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/
It's a tool! Not one meant to be used
publicly from untrusted users.
Free feel to submit a patch as is
the Open Source spirit!
--JamesMills
More information about the Python-list
mailing list