0% found this document useful (0 votes)
7 views1 page

Codigo

Uploaded by

Betadi10 Gamer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Codigo

Uploaded by

Betadi10 Gamer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

-- MySQL Workbench Forward Engineering

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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR
_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';

-- -----------------------------------------------------
-- Schema personas
-- -----------------------------------------------------

-- -----------------------------------------------------
-- Schema personas
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `personas` DEFAULT CHARACTER SET utf8 ;
USE `personas` ;

-- -----------------------------------------------------
-- Table `personas`.`Personas`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `personas`.`Personas` (
`IDPersona` VARCHAR(9) NOT NULL,
`NombrePersona` VARCHAR(45) NOT NULL,
PRIMARY KEY (`IDPersona`),
UNIQUE INDEX `idPeople_UNIQUE` (`IDPersona` ASC) VISIBLE)
ENGINE = InnoDB;

SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;

-- -----------------------------------------------------
-- Data for table `personas`.`Personas`
-- -----------------------------------------------------
START TRANSACTION;
USE `personas`;
INSERT INTO `personas`.`Personas` (`IDPersona`, `NombrePersona`) VALUES
('01234567A', 'José Antonio');
INSERT INTO `personas`.`Personas` (`IDPersona`, `NombrePersona`) VALUES
('12345678B', 'David');
INSERT INTO `personas`.`Personas` (`IDPersona`, `NombrePersona`) VALUES
('23456789C', 'Javier');

COMMIT;

You might also like