Espero que puedan ayudarme, es nuestra primer base de datos, es bastante nuevo para nosotros.
El error que me tira es el siguiente:
Código:
Executing SQL script in server
ERROR: Error 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 ')
REFERENCES `AdministracionDeEdificios`.`Unidad` ()
ON DELETE NO ACTION' at line 8
-- -----------------------------------------------------
-- Table `AdministracionDeEdificios`.`Persona`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `AdministracionDeEdificios`.`Persona` (
`ID_PERSONA` INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`ID_PERSONA`),
CONSTRAINT `id_Unidad`
FOREIGN KEY ()
REFERENCES `AdministracionDeEdificios`.`Unidad` ()
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
SQL script execution finished: statements: 9 succeeded, 1 failed
Fetching back view definitions in final form.
Nothing to fetch


