Re: psycopg2

2008-02-01 Thread Andre' John
up when running that through Google. On Thu, 31 Jan 2008, Steve Holden wrote: > Andre' John wrote: > > Hi > > > > I am trying to do this for a Postgresql database: > > > > conn = psycopg2.connect('host=localhost') > > cur = c

psycopg2

2008-01-31 Thread Andre' John
Hi I am trying to do this for a Postgresql database: conn = psycopg2.connect('host=localhost') cur = conn.cursor() cur.execute("SELECT * FROM names WHERE name=%s", ['S']) , which doesn't work, and neither does cur.execute("SELECT * FROM names WHERE name='%s'", ['S']) or cur.execute("SELECT *

Re: Generic string import like in strptime?

2008-01-16 Thread Andre' John
Nice. Thanks a lot. Andre On Wed, 16 Jan 2008, Paul Hankin wrote: > On Jan 16, 8:34 am, Andre <[EMAIL PROTECTED]> wrote: > > Hi there > > > > Is there a function like strptime, which takes a string and converts it > > into an array depending on a format string I provide. Like:>>> a = > > '3456