You don't need to drop a TEMPORARY table... it is dropped at connection-close !
You don't need to wory about different names for TEMPORARY tables... Manual says: > A TEMPORARY table is visible only to the current connection, and is > dropped automatically when the connection is closed. This means that two > different connections can use the same temporary table name without > conflicting with each other or with an existing non-TEMPORARY table of the > same name. > Good luck !