Use the CREATE TABLE statement or ALTER TABLE statement to create foreign keys, as you do primary keys.
You cannot create foreign key constraints on local temporary tables. Global temporary tables must be created with ON COMMIT PRESERVE ROWS.