Re: problem with simple insert(newbie)
Karsten Hilbert <[email protected]> Tue, 25 May 2010 23:16:55 +0200
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, May 25, 2010 at 01:16:45PM -0700, uno dos wrote:
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self.__cursor.execute("insert into tabl=
a (informacion) VALUES (%s);",(asdas))
You are lacking a comma here, "(asdas)" is not a sequence.
You'd need to use "(asdas,)".
Karsten
-- =
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346