mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-25 02:13:44 +03:00
10 lines
208 B
Python
10 lines
208 B
Python
import psycopg2
|
|
import psycopg2.extras
|
|
|
|
conn = psycopg2.connect("dbname=test")
|
|
curs = conn.cursor()
|
|
curs.execute("SELECT true AS foo WHERE 'a' in %s", (("aa", "bb"),))
|
|
print curs.fetchall()
|
|
print curs.query
|
|
|