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 persona ( |
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 DATABASE colegio; | |
| USE colegio; | |
| CREATE TABLE colegio_curso( | |
| curso_codigo INT NOT NULL PRIMARY KEY AUTO_INCREMENT, | |
| curso_nivel VARCHAR(50) NOT NULL); | |
| CREATE TABLE colegio_alumno( | |
| alumno_rut VARCHAR(10) NOT NULL PRIMARY KEY, |