skip to Main Content

Mysql – Using a function in a loop in Python

My aim is to get the last price from a histoy table (History_price) and inject it in a parameter table (param_forex). I have defined the following function: mycursor.execute(f"UPDATE `param_forex` SET `Rate` = %s, `Update_Time` = CURRENT_TIME() WHERE `param_forex`.`Ticker` LIKE %s",…

VIEW QUESTION
Back To Top
Search