Download this file
12 lines (10 with data), 375 Bytes
| # -*- coding: utf-8 -*-
import psycopg
dsn = "host=localhost dbname=clocks user=mmaglis password=magliver"
conn = psycopg.connect(dsn)
curs=conn.cursor()
#curs.execute("insert into transactions values('54321', '123456789123'")
#conn.commit()
curs.execute("begin work;declare crs cursor for select * from transactions")
curs.execute("fetch 1 from crs")
print curs.fetchall()
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.