Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import psycopg2
- c = psycopg2.connect('db=some_db user=me').cursor()
- c.execute('select * from some_table')
- for row in c:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement