
24/01/2011, 13:37
|
 | Moderador criollo | | Fecha de Ingreso: noviembre-2007 Ubicación: Actualmente en Buenos Aires (el enemigo ancestral)
Mensajes: 23.324
Antigüedad: 17 años, 3 meses Puntos: 2658 | |
Respuesta: error en base datos La idea sería:
Código MySQL:
Ver originalSET @OLD_UNIQUE_CHECKS =@@UNIQUE_CHECKS , UNIQUE_CHECKS =0; SET @OLD_FOREIGN_KEY_CHECKS =@@FOREIGN_KEY_CHECKS , FOREIGN_KEY_CHECKS =0; SET @OLD_SQL_MODE =@@SQL_MODE , SQL_MODE ='TRADITIONAL'; -- ----------------------------------------------------- -- Table `administrador` -- ----------------------------------------------------- COMMENT = 'administracion de validacion de usuarios'; -- ----------------------------------------------------- -- Table `sede` -- ----------------------------------------------------- -- ----------------------------------------------------- -- Table `tipo` -- ----------------------------------------------------- -- ----------------------------------------------------- -- Table `afiliados` -- ----------------------------------------------------- INDEX `Relationship3` (`afil_tip` ASC) , INDEX `Relationship5` (`afil_sed` ASC) , COMMENT = 'afiliados al ipasme (pacientes)\r\n'; -- ----------------------------------------------------- -- Table `historia` -- ----------------------------------------------------- INDEX `Relationship14` (`hist_adm` ASC) , INDEX `fk_historia_afiliados1` (`afil_cod` ASC) , -- ----------------------------------------------------- -- Table `especialidad` -- ----------------------------------------------------- -- ----------------------------------------------------- -- Table `medico` -- ----------------------------------------------------- INDEX `Relationship15` (`med_esp` ASC) , -- ----------------------------------------------------- -- Table `cita` -- ----------------------------------------------------- INDEX `Relationship18` (`cit_med` ASC) , INDEX `Relationship7` (`cit_hist` ASC) , -- ----------------------------------------------------- -- Table `laboratorio` -- ----------------------------------------------------- INDEX `Relationship16` (`lab_cit` ASC) , SET SQL_MODE =@OLD_SQL_MODE ; SET FOREIGN_KEY_CHECKS =@OLD_FOREIGN_KEY_CHECKS ; SET UNIQUE_CHECKS =@OLD_UNIQUE_CHECKS ;
Y su graficación:
__________________ ¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores constantemente... "El problema es la interfase silla-teclado." (Gillermo Luque) |