• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
SET SQL_MODE=@OLD_SQL_MODE;SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;SETUNIQUE_CHECKS=@OLD _UNIQUE_CHECKS;-- ------------------------------------------------------- Data for table `usuario`-- -----------------------------------------------------SET AUTOCOMMIT=0;INSERT INTO `usuario` (`dni_usu`, `nombre_usu`, `tipo_sangre_id_sangre`, `f_nac_usu`, `apellido_usu`,`direccion_usu`, `telefono_usu`, `email_usu`, `estado`, `estad_civil_id_civil`, `foto_usu`, `sexo_usu`,`boleto_num_boleto`) VALUES (40809000, 'Luis', 'A negativo', 15, '', '', '', '', '', '', '', '', );INSERT INTO `usuario` (`dni_usu`, `nombre_usu`, `tipo_sangre_id_sangre`, `f_nac_usu`, `apellido_usu`,`direccion_usu`, `telefono_usu`, `email_usu`, `estado`, `estad_civil_id_civil`, `foto_usu`, `sexo_usu`,`boleto_num_boleto`) VALUES (98989898, 'FELIPE', 'B negativo', 23, '', '', '', '', '', '', '', '', );INSERT INTO `usuario` (`dni_usu`, `nombre_usu`, `tipo_sangre_id_sangre`, `f_nac_usu`, `apellido_usu`,`direccion_usu`, `telefono_usu`, `email_usu`, `estado`, `estad_civil_id_civil`, `foto_usu`, `sexo_usu`,`boleto_num_boleto`) VALUES (78787988, 'Dora', 'A negativo', 5, '', '', '', '', '', '', '', '', );COMMIT;
 
 -- ------------------------------------------------------- Data for table `encomienda`-- -----------------------------------------------------SET AUTOCOMMIT=0;INSERT INTO `encomienda` (`idencomienda`, `descripcion`, `f_envio`, `usuario_dni_usu`, `cliente_dni_cli`,`f_recepcion`, `costo`, `destino_id_destino`, `usuario_dni_usu1`, `destino_iddestino`, `cliente_dni_cliente`,`cliente_tipo_sangre_idtipo_sangre`, `cliente_boleto_num_boleto`) VALUES (12, 'caja', 15, 'lima', 12457812,15/02/1927, 15.00, '01', 40404040, 01, 15457879, , );INSERT INTO `encomienda` (`idencomienda`, `descripcion`, `f_envio`, `usuario_dni_usu`, `cliente_dni_cli`,`f_recepcion`, `costo`, `destino_id_destino`, `usuario_dni_usu1`, `destino_iddestino`, `cliente_dni_cliente`,`cliente_tipo_sangre_idtipo_sangre`, `cliente_boleto_num_boleto`) VALUES (13, 'bolsa', 16, 'paris', 14725836,12/11/09, 20, '02', 98765432, 02, 14785236, 0, 0);INSERT INTO `encomienda` (`idencomienda`, `descripcion`, `f_envio`, `usuario_dni_usu`, `cliente_dni_cli`,`f_recepcion`, `costo`, `destino_id_destino`, `usuario_dni_usu1`, `destino_iddestino`, `cliente_dni_cliente`,`cliente_tipo_sangre_idtipo_sangre`, `cliente_boleto_num_boleto`) VALUES (14, 'maleta', 19, 'china', 65498732,15/7/89, 145.00, '13', 14563278, 13, 87451245, 0, 0);INSERT INTO `encomienda` (`idencomienda`, `descripcion`, `f_envio`, `usuario_dni_usu`, `cliente_dni_cli`,`f_recepcion`, `costo`, `destino_id_destino`, `usuario_dni_usu1`, `destino_iddestino`, `cliente_dni_cliente`,`cliente_tipo_sangre_idtipo_sangre`, `cliente_boleto_num_boleto`) VALUES (15, 'bolsa', 16, 'peru', 14562289, 15/4/19,15.62, '65', 65498765, 51, 15926348, 0, 0);INSERT INTO `encomienda` (`idencomienda`, `descripcion`, `f_envio`, `usuario_dni_usu`, `cliente_dni_cli`,`f_recepcion`, `costo`, `destino_id_destino`, `usuario_dni_usu1`, `destino_iddestino`, `cliente_dni_cliente`,`cliente_tipo_sangre_idtipo_sangre`, `cliente_boleto_num_boleto`) VALUES (16, 'caja', 98, 'colombia', 48156295,15/8/96, 16.65, '485', 57893214, 78, 55887774, 0, 0);COMMIT;-- ------------------------------------------------------- Data for table `chofer`-- -----------------------------------------------------SET AUTOCOMMIT=0;INSERT INTO `chofer` (`idchofer`, `brevete_num_brevete`, `f_nac_chofer`, `estado_chof`, `estado_civil_id_civil`,`nom_chof`, `direccion_chof`, `foto_chof`, `tipo_sangre_id_sangre`, `telefono_chof`, `email_chof`, `apellido_chof`,`sexo_chof`, `tipo_sangre_idtipo_sangre`, `estado_civil_idestado_civil`, `brevete_idbrevete`) VALUES (01,0123456789, 15/12/98, 'activo', 'soltero', 'Juan', 'jr. Paz 456', '', 'O positivo', '467948', '', '', '', 0, 0, 0);
 
INSERT INTO `chofer` (`idchofer`, `brevete_num_brevete`, `f_nac_chofer`, `estado_chof`, `estado_civil_id_civil`,`nom_chof`, `direccion_chof`, `foto_chof`, `tipo_sangre_id_sangre`, `telefono_chof`, `email_chof`, `apellido_chof`,`sexo_chof`, `tipo_sangre_idtipo_sangre`, `estado_civil_idestado_civil`, `brevete_idbrevete`) VALUES (02,0123456000, 15/11/00, 'descanso', 'casado', 'Mario', 'av. Ilo 987', '', 'AB positivo', '987654', '', '', '', 0, 0, 0);INSERT INTO `chofer` (`idchofer`, `brevete_num_brevete`, `f_nac_chofer`, `estado_chof`, `estado_civil_id_civil`,`nom_chof`, `direccion_chof`, `foto_chof`, `tipo_sangre_id_sangre`, `telefono_chof`, `email_chof`, `apellido_chof`,`sexo_chof`, `tipo_sangre_idtipo_sangre`, `estado_civil_idestado_civil`, `brevete_idbrevete`) VALUES (03,9876544210, 6/12/98, 'activo', 'soltero', 'Carlos', 'av. peru 465', '', 'a postivo', '6549787', '', '', '', 0, 0, 0);COMMIT;SET @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';SHOW WARNINGS;-- ------------------------------------------------------- Table `boleto`-- -----------------------------------------------------DROP TABLE IF EXISTS `boleto` ;SHOW WARNINGS;CREATE TABLE IF NOT EXISTS `boleto` (`num_boleto` INT NOT NULL ,`precio` VARCHAR(45) NULL ,`usuario_id_usuario` VARCHAR(45) NULL ,`destino_id_destino` VARCHAR(45) NULL ,`fecha` VARCHAR(45) NULL ,`num_asiento` VARCHAR(45) NULL ,`cliente_dni_cli` VARCHAR(45) NULL ,PRIMARY KEY (`num_boleto`) )ENGINE = InnoDB;SHOW WARNINGS;-- ------------------------------------------------------- Table `usuario`-- -----------------------------------------------------DROP TABLE IF EXISTS `usuario` ;SHOW WARNINGS;CREATE TABLE IF NOT EXISTS `usuario` (`dni_usu` INT NOT NULL ,`nombre_usu` VARCHAR(45) NULL ,`tipo_sangre_id_sangre` VARCHAR(45) NULL ,`f_nac_usu` DATE NULL ,`apellido_usu` VARCHAR(45) NULL ,`direccion_usu` VARCHAR(45) NULL ,`telefono_usu` VARCHAR(45) NULL ,`email_usu` VARCHAR(45) NULL ,`estado` VARCHAR(45) NULL ,`estad_civil_id_civil` VARCHAR(45) NULL ,`foto_usu` BINARY NULL ,`sexo_usu` VARCHAR(45) NULL ,`boleto_num_boleto` INT NOT NULL ,PRIMARY KEY (`dni_usu`, `boleto_num_boleto`) )ENGINE = InnoDB;SHOW WARNINGS;CREATE INDEX `fk_usuario_boleto1` ON `usuario` (`boleto_num_boleto` ASC) ;
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...