Quote:
|
Originally Posted by bigcalm
Temporary tables reside on a single process id / session id. What's probably happening is that you're either using some kind of connection pooling or disconnecting and reconnecting the connection when trying to select from that temporary table (and because your session id has changed, the table no longer exists for you). Probably the simplest solution is not to use a temporary table (use a permanent one), because it could take a while to figure out what's going on!
|
or just solve the problem with the connection...
I don't recommend create a permanent table, because this can overhead your database, generating consequences for your backup and database performance.
In the worst situation, if at the moment there is no other way to solve the connection problem, create the permanent table as RAW table , this way you not will log this tables unnecessarily ...