I have stablished a function in MySQL that lets me query some data by injecting other queries results into a Temporary Table.
My question is, is it possible to query said Temporary table once I've run my function using MySQL connector?
The reason I'm asking is that, while running a simple query from within python:
query = ("SELECT data FROM mytemporarytable")
cursor.execute(query)
cursor_buff = cursor.fetchall()
I'm getting the following error:
mysql.connector.errors.ProgrammingError: 1146 (42S02): Table 'mydatabase.mytemporarytable' doesn't exist
Thank you very much in advance!