Guest User

Untitled

a guest
Feb 12th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import psycopg2
  2. conn = psycopg2.connect("
  3. dbname='postgres'
  4. user='postgres'
  5. host=''
  6. port=''
  7. password=''
  8. ");
  9. c = conn.cursor()
  10. c.execute("INSERT INTO (ID) VALUES ('')")
  11. c.execute("SELECT * FROM ")
  12. conn.commit
  13.  
  14. records2 = c.fetchall()
  15. import pprint
  16. pprint.pprint(records2)
Add Comment
Please, Sign In to add comment