base de datos de un colegio

2,458 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,458
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
43
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

base de datos de un colegio

  1. 1. Base de datos de colegio
  2. 2. Alumno CREATE TABLE `alumno` ( `cod_alum` VARCHAR(6) NOT NULL , `nombre` VARCHAR(30) DEFAULT NULL, `apellido` VARCHAR(40) DEFAULT NULL, `dirección` VARCHAR(60) DEFAULT NULL, PRIMARY KEY (`cod_alum`)) INSERT INTO `alumno`(`cod_alum`,`nombre`,`apellido`,`direccion`) VALUES ('001','Manuel','Reyes Palomino','San juan'),('002','Samanta','Vargas Machuca','Chorrillos'); INSERT INTO `alumno`(`cod_alum`,`nombre`,`apellido`,`direccion`) VALUES ('003','Raquel','Mano Alvaro','San juan'),('004','Juan','Maquez Hidalgo','Chorrillos'); INSERT INTO `alumno`(`cod_alum`,`nombre`,`apellido`,`direccion`) VALUES ('005','Carmen','Peña Salas','San Isidro');
  3. 3. Matricula CREATE TABLE `matricula` ( `cod_matricula` VARCHAR(6) NOT NULL , `fecha` DATETIME DEFAULT NULL, `seccion` CHAR(3) DEFAULT NULL, `grado` CHAR(3) DEFAULT NULL, `nivel` VARCHAR(15) DEFAULT NULL, PRIMARY KEY (`cod_matricula`))

×