Explanation
A referential CONSTRAINT definition cannot be specified for a temporary table.
User Response
Repeat the SQL statement without the invalid specification, or create a permanent table in place of the temporary table.