daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Sep 4th, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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,))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top