Skip to content

Instantly share code, notes, and snippets.

@jrbistuer
Last active December 26, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrbistuer/7090639 to your computer and use it in GitHub Desktop.
Save jrbistuer/7090639 to your computer and use it in GitHub Desktop.
script para el ejemplo de queries entre dos tablas
CREATE SCHEMA IF NOT EXISTS `test2` DEFAULT CHARACTER SET utf8 ;
USE `test2` ;
CREATE TABLE IF NOT EXISTS `test2`.`rol` (
`idRol` INT(11) NOT NULL AUTO_INCREMENT,
`Tipo` VARCHAR(45) NULL DEFAULT NULL,
PRIMARY KEY (`idRol`))
ENGINE = InnoDB
AUTO_INCREMENT = 1;
CREATE TABLE IF NOT EXISTS `test2`.`usuario` (
`idUsuario` INT(11) NOT NULL AUTO_INCREMENT,
`Nombre` VARCHAR(45) NULL DEFAULT NULL,
`Rol` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`idUsuario`))
ENGINE = InnoDB
AUTO_INCREMENT = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment