Ver Mensaje Individual
  #43 (permalink)  
Antiguo 23/06/2009, 09:53
gerno
 
Fecha de Ingreso: mayo-2009
Mensajes: 7
Antigüedad: 15 años
Puntos: 0
Respuesta: una duda para empezar

Buenos Dias

se me ha presentado un problema en la creacion de la Base de Datos de mi proyecto

con la relacion de las claves foraneas

esta es la tabla que me da el error:

CREATE TABLE Gerencia (
idGerencia INT NOT NULL AUTO_INCREMENT,
Gerencia VARCHAR(45) NULL,
Valor INT NULL,
PRIMARY KEY(idGerencia),
FOREIGN KEY(idSede) REFERENCES Sede(idSede),
ON DELETE CASCADE ON UPDATE CASCADE
FOREIGN KEY(idNivel) REFERENCES Nivel(idNivel)
ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=INNODB;

y el error es el siguiente:

1064 - 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 ') ENGINE=INNODB' at line 10

Por favor si me pueden ayudar????