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