Guest User

Untitled

a guest
Dec 3rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import psycopg2
  2. conn = psycopg2.connect("dbname='test' user='postgres' host='localhost' password='xx");
  3. cursor = conn.cursor()
  4. cursor.execute("UPDATE recording SET rank = 10 WHERE id = 10;")
  5. conn.commit()
  6. cursor.close ()
Add Comment
Please, Sign In to add comment