Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/06/2011, 09:27
toni_
 
Fecha de Ingreso: abril-2008
Mensajes: 7
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Problemas con Foreign Key

Gracias por tu ayuda. Estoy probando lo que me has dicho pero al ejecutar en phpmyadmin me muestra el siguiente error:
check the manual that corresponds to your MySQL server version for the right syntax to use near '`FK_usuario` FOREIGN KEY (`ID`) REFERENCES `roles` (`clave`) ON DELETE CASCADE ' at line 2.
He intentado arreglarlo pero no he podido, debe ser una tontería pero se me da tan mal mysql que no encuentro el fallo