阅读背景:

在MySQL子查询中使用Python变量

来源:互联网 
team = input("Enter the team name: ")

cursor = db.cursor()

sql = "SELECT * FROM `flash_data_archive` WHERE `event_id` IN (SELECT `alternate_id` from `event_list` where `category` = %s)" % team 

cursor.execute(sql)
team = input("Enter the team name: ")

cursor =



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: