Code: Select all
AnsiString SQLstring;
SQLstring = "CREATE TEMPORARY TABLE temp SELECT * FROM mytable";
ZSQLProcessor1->Script->Text = SQLstring;
ZSQLProcessor1->Execute();
ZQuery1->Active = false;
ZQuery1->SQL->Add("SELECT * FROM temp");
ZQuery1->Active = true;
When I perform both queries in MySQL workbench, it works fine, so I have the feeling that it has something to with a setting of one of the zeos-objects, but i am not sure.
I checked the processlist in MySQL en saw that both the ZSQLProcessor1 and ZQuery1 object use the same MySQL connection, so that should not be the problem.
Any ideas? thanks !