pythonpostgresql
This is an old revision of the document!
psycopg
psycopg Homepage
psycopg2 Installation
import psycopg2 conn = psycopg2.connect(database="doob", user = "ian", password = "pwd", host = "localhost") print "Connection Successful" cur = conn.cursor() cur.execute('''select usename, usesuper from pg_user;''') for row in cur: print(row) cur.close()
pythonpostgresql.1638195690.txt.gz · Last modified: 2025/03/08 22:23 (external edit)