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
DROP DATABASE IF EXISTS universidad; | |
CREATE DATABASE universidad CHARACTER SET utf8mb4; | |
USE universidad; | |
CREATE TABLE departamento ( | |
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
nombre VARCHAR(50) NOT NULL | |
); | |
CREATE TABLE alumno ( |
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
DROP DATABASE IF EXISTS jardineria; | |
CREATE DATABASE jardineria CHARACTER SET utf8mb4; | |
USE jardineria; | |
CREATE TABLE oficina ( | |
codigo_oficina VARCHAR(10) NOT NULL, | |
ciudad VARCHAR(30) NOT NULL, | |
pais VARCHAR(50) NOT NULL, | |
region VARCHAR(50) DEFAULT NULL, | |
codigo_postal VARCHAR(10) NOT NULL, |