[Tutor] CSV file processing...

Marc Tompkins marc.tompkins at gmail.com
Fri Mar 21 20:58:43 CET 2008


Sorry... no, it still shouldn't work...
maybe like so:
co.execute('''INSERT INTO stats
VALUES("%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s"
% row''')


> You have triple quotes around your SQL.  That means that "implied" line
> breaks become real.  It won't look as nice, but take the line breaks out and
> I think it ought to work.
>
> Just my $.02...
>
> --
> www.fsrtechnologies.com




-- 
www.fsrtechnologies.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080321/970ec258/attachment.htm 


More information about the Tutor mailing list