|
@@ -24,7 +24,7 @@ db = pymysql.connect(host='localhost',
|
|
|
engine2 = create_engine('mysql+pymysql://root:r6kEwqWU9!v3@localhost:3307/hlfx?charset=utf8')
|
|
|
engine = create_engine('mysql+pymysql://root:r6kEwqWU9!v3@localhost:3307/stocks?charset=utf8')
|
|
|
cursor = db.cursor()
|
|
|
-cursor.execute('show tables like {}'.format('\'%{}\''.format(fre)))
|
|
|
+cursor.execute("show tables like '%%%s%%' "% fre)
|
|
|
table_list = [tuple[0] for tuple in cursor.fetchall()]
|
|
|
|
|
|
print(table_list)
|