Last active
December 26, 2015 04:09
-
-
Save jrbistuer/7090639 to your computer and use it in GitHub Desktop.
script para el ejemplo de queries entre dos tablas
This file contains hidden or 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
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