Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import psycopg2
- conn = psycopg2.connect("dbname='test' user='postgres' host='localhost' password='xx");
- cursor = conn.cursor()
- cursor.execute("UPDATE recording SET rank = 10 WHERE id = 10;")
- conn.commit()
- cursor.close ()
Add Comment
Please, Sign In to add comment