ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Mysql-evaluacion-encuesta


Enviado por   •  30 de Agosto de 2011  •  483 Palabras (2 Páginas)  •  1.269 Visitas

Página 1 de 2

/*

Created 29/08/2011

Modified 30/08/2011

Project

Model

Company

Author

Version

Database mySQL 5

*/

Create table tabla_docente (

id_maestro Int NOT NULL,

id_curso Int NOT NULL,

nombre Varchar(20) NOT NULL,

apellido Varchar(30) NOT NULL,

fecha_ngreso Datetime,

Primary Key (id_maestro,id_curso)) ENGINE = MyISAM;

Create table tabla_curso (

id_curso Int NOT NULL,

nombre_curso Varchar(30) NOT NULL,

fecha_inicio Datetime NOT NULL,

fecha_fin Datetime NOT NULL,

duracion Varchar(15) NOT NULL,

Primary Key (id_curso)) ENGINE = MyISAM;

Create table tabla_alumno (

id_alumno Int NOT NULL,

id_curso Int NOT NULL,

nombre Varchar(15) NOT NULL,

apellido Varchar(30) NOT NULL,

Primary Key (id_alumno,id_curso)) ENGINE = MyISAM;

Create table preguntas_docente (

id_D Int NOT NULL,

id_cat Int NOT NULL,

pregunta Varchar(120) NOT NULL,

Primary Key (id_D,id_cat)) ENGINE = MyISAM;

Create table preguntas_administrativos (

id_Admi Int NOT NULL,

id_cat Int NOT NULL,

pregunta Varchar(120) NOT NULL,

Primary Key (id_Admi,id_cat)) ENGINE = MyISAM;

Create table preguntas_institucion (

id_I Int NOT NULL,

id_cat Int NOT NULL,

pregunta Varchar(120) NOT NULL,

Primary Key (id_I,id_cat)) ENGINE = MyISAM;

Create table preguntas_mantenimiento (

id_M Int NOT NULL,

id_cat Int NOT NULL,

pregunta Varchar(120) NOT NULL,

Primary Key (id_M,id_cat)) ENGINE = MyISAM;

Create table categoria_pregunta (

id_cat Int NOT NULL,

descripcion Varchar(20),

Primary Key (id_cat)) ENGINE = MyISAM;

Create table tabla_administrativos (

id_admin Int NOT NULL,

id_cat Int NOT NULL,

nombre Varchar(20) NOT NULL,

apellido Varchar(30) NOT NULL,

fecha_contrato Datetime NOT NULL,

Primary Key (id_admin)) ENGINE = MyISAM;

Create table

...

Descargar como (para miembros actualizados)  txt (4.4 Kb)  
Leer 1 página más »
Disponible sólo en Clubensayos.com