mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-11 11:36:37 +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
|
|
|