Alter tabela para fornecer restrição de chave estrangeira
Tenho uma tabela com 2 colunas que copiei de duas tabelas diferentes. O que quero fazer agora é fornecer uma restrição de chave estrangeira no email e no ID dos nomes das colunas, mostrados abaix
ALTER TABLE users_role_map
ADD CONSTRAINT FK_users_role_map
FOREIGN KEY (email) REFERENCES usert(email),
FOREIGN KEY (id) REFERENCES rolet(id)
ON UPDATE CASCADE
ON DELETE CASCADE;
Estou tendo o erro a seguir
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'FOREI
GN KEY (id) REFERENCES rolet(id)
ON UPDATE CASCADE
ON DELETE CASCADE' at line 4