Guest User

Untitled

a guest
Sep 4th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. mydb = mysql.connector.connect(
  2. host="localhost",
  3. user="root",
  4. password="xxxx",
  5. database="xxxx",
  6. autocommit = True
  7. )
  8.  
  9. mycursor = mydb.cursor()
  10. x = dict["MST"]["p"]
  11.  
  12. mycursor.execute("""
  13. UPDATE
  14. currency_price_fact
  15. SET
  16. hour_1_price = %s
  17. WHERE
  18. currency_symbol = 'TPL'
  19. """,(x,))
Add Comment
Please, Sign In to add comment