[Tutor] no luck with sqlinsert
Alan Gauld
alan.gauld at btinternet.com
Fri Jan 14 18:08:13 CET 2011
"Tommy Kaas" <tommy.kaas at kaasogmulvad.dk> wrote
>I get a invalid syntax error when I try to run this script - and it's
> con.commit() which is highlighted when I get the error.
Aren't you one closing parenthesis short?
> cur.execute(sqlinsert,
(cols[0],
cols[1],
int(cols[2]),
int(cols[3]),
int(cols[4]),
int(cols[5]),
int(cols[6]),
int(cols[7])
)
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list