This commit is contained in:
Lev Kokotov
2022-02-03 18:13:36 -08:00
parent 6e83556867
commit 05250d9374
2 changed files with 5 additions and 3 deletions

View File

@@ -3,7 +3,9 @@ import psycopg2
conn = psycopg2.connect("postgres://random:password@127.0.0.1:5433/db")
cur = conn.cursor()
cur.execute("SELECT 123");
cur.execute("SELECT $1", [1234]);
res = cur.fetchall()
print(res)
print(res)
conn.commit()