I have a query of the following format,
DROP TABLE X;
CREATE TEMPORARY TABLE IF NOT EXISTS X (SELECT * FROM TABLE);
SELECT A,B,C FROM X;
However, if I run this in Python using mysql connector. I get the following message, 'No result set to fetch from'
.
My understanding is that it only executes the first DROP TABLE X;
and returns.
Is there another way to achieve this?. I've also tried using multi=True
but that didn't work either.
Thanks in advance