Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. import psycopg2
  2.  
  3. c = psycopg2.connect('db=some_db user=me').cursor()
  4. c.execute('select * from some_table')
  5. for row in c:
  6. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement