All pastes #896315 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-08 15:24 UTC
rendered paste body
>>> import psycopg2 
>>> import psycopg2.extensions
>>> import logging
>>> connection=psycopg2.connect(database='buss_cards', host='localhost', user='postgres')
>>> cursor = connection.cursor()
>>> foobar=2
>>> result = cursor.execute("select * from cards WHERE id=%s", (foobar,))
>>> print result
None
>>>