Created
June 9, 2013 22:12
-
-
Save robert76ers/5745466 to your computer and use it in GitHub Desktop.
tablas relacionadas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Estructura de tabla para la tabla `credito_datocrediticio` | |
-- | |
CREATE TABLE `credito_datocrediticio` ( | |
`secuencial` int(6) NOT NULL auto_increment, | |
`secuencialSolicitud` int(6) NOT NULL, | |
`descripcionActividadEconomica` varchar(200) NOT NULL, | |
`numeroMesesActividadEconomica` int(6) NOT NULL, | |
`numeroMesesVivienda` int(6) NOT NULL, | |
`fechaBalance` date NOT NULL, | |
`totalIngresos` decimal(12,2) NOT NULL, | |
`totalGastos` decimal(12,2) NOT NULL, | |
`totalActivos` decimal(12,2) NOT NULL, | |
`totalPasivos` decimal(12,2) NOT NULL, | |
`numeroTrabajadores` int(6) NOT NULL, | |
`estaActivo` int(6) NOT NULL default '1', | |
PRIMARY KEY (`secuencial`), | |
KEY `secuencialSolicitud` (`secuencialSolicitud`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; | |
-- | |
-- Volcar la base de datos para la tabla `credito_datocrediticio` | |
-- | |
INSERT INTO `credito_datocrediticio` VALUES (1, 6, 'Banca y Finanzas', 36, 36, '2013-06-30', 2000.00, 1000.00, 400.00, 300.00, 3, 1); | |
INSERT INTO `credito_datocrediticio` VALUES (2, 11, 'Otras', 240, 180, '2013-06-18', 50000.00, 30000.00, 10000.00, 9000.00, 10, 1); | |
INSERT INTO `credito_datocrediticio` VALUES (3, 5, 'Economia Popular', 24, 18, '2013-08-10', 50000.00, 30000.00, 10000.00, 9000.00, 51, 1); | |
INSERT INTO `credito_datocrediticio` VALUES (4, 7, 'Economia Popular', 243, 23, '2013-06-03', 20000.00, 2000.00, 10000.00, 9000.00, 1000, 1); | |
-- | |
-- Filtros para las tablas descargadas (dump) | |
-- | |
-- | |
-- Filtros para la tabla `credito_datocrediticio` | |
-- | |
ALTER TABLE `credito_datocrediticio` | |
ADD CONSTRAINT `credito_datocrediticio_ibfk_1` FOREIGN KEY (`secuencialSolicitud`) REFERENCES `credito_solicitudmaestro` (`secuencial`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment