Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cnx = connect(user=<...>,password=<...>,host=<...>,database=<...>)
- cursor = cnx.cursor()
- cursor.execute(sql)
- cnx.close()
- with psycopg2.connect(user=<...>, password=<...>, host=<...>,
- database=<>) as cnx:
- cursor = cnx.cursor()
- cursor.execute(sql)
Add Comment
Please, Sign In to add comment