Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. #!/usr/bin/python
  3. import psycopg2
  4.  
  5. conn = psycopg2.connect("dbname=meco user=meco password=Cn7I8IwS2cnFg1KIUX2wPMFv6KoJS7fq host=localhost")
  6. cur = conn.cursor()
  7.  
  8. cur.execute("select * from langs")
  9. print cur.fetchall()
  10.  
  11. conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement