7
CREACION DE LA TABLA ALUMNOS create table`alumnos`(`Id`int(5)NOT NULL AUTO_INCREMENT, `No_contrl`varchar(10)DEFAULT NULL, `Nombre`varchar(20)DEFAULT NULL, `Apellido_P`VARCHAR(20)DEFAULT NULL, `Apellido_M`varchar(20)DEFAULT NULL,

Creacion de La Tabla Alumnos en Navicat

  • Upload
    satodi

  • View
    21

  • Download
    1

Embed Size (px)

Citation preview

CREACION DE LA TABLA ALUMNOS create table`alumnos`(`Id`int(5)NOT NULL AUTO_INCREMENT, `No_contrl`varchar(10)DEFAULT NULL, `Nombre`varchar(20)DEFAULT NULL, `Apellido_P`VARCHAR(20)DEFAULT NULL, `Apellido_M`varchar(20)DEFAULT NULL, `Especialidad`varchar(6)DEFAULT NULL, `Sexo`varchar(6)DEFAULT NULL, `Telefono`varchar(17)DEFAULT NULL, PRIMARY KEY(`Id`))ENGINE=InnoBD DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

insert into alumnos values(null,'11500312','Salomon','Tomas','Diaz','I.S.C','Hombre','7851043837');

select * from alumnos;aqui vamos insertando los demas alumnusvemos los nombres de los alumnos en la tabla en la parte inferior

AQUI INSERTAMOS NOMBRES Y CLAVES DE LAS ESPECIALIDADES EN LA TABLA ESPECIALDAInsert into especialidad values(ag62,I.S.C);Insert into especialidad values(Bg62,G.E);Insert into especialidad values(Cg62,ELECT);}

Select * from especialidad;

Aqui mostramos last res tablas que tenemos que son: alumnos, materias y especialidadShow tables;

Aqu mostramos los datos que tenemos en la tabla alumnos Select * from alumnos;Aqu mostramos los datos en la tabla especialidadSelect * from especiliadad;

Aqu mosstramos los datos que tenemos en la tabla materias;Select * from materias;