Invalid use of created temporary table <str> Explanation: A temporary table cannot be referenced in a constraint on a persistent base table or in a SET TRANSACTION statement. A global temporary table cannot be referenced in a constraint on a local temporary table. User Action: There is no need to reserve a temporary table since each user session has its own copy of the data.