Exemple #1
0
 public void insertar(EntidadMateria entidad)
 {
     sql = "INSERT INTO materia ("
           + "id_materia,"
           + "nombreM,"
           + "id_profesor"
           + ") VALUES ("
           + EntidadMateria.Id_materia + ","
           + "'" + EntidadMateria.NombreM + "',"
           + "'" + EntidadMateria.Id_profesorE + "'"
           + ")";
     mod.ejecutarSQL(sql);
 }
Exemple #2
0
 public void insertar(EntidadProfesor entidad)
 {
     sql = "INSERT INTO profesor ("
           + "id_profesor,"
           + "nombreP,"
           + "apellidoP"
           + ") VALUES ("
           + EntidadProfesor.Id_profesor + ","
           + "'" + EntidadProfesor.NombreP + "',"
           + "'" + EntidadProfesor.ApellidoP + "'"
           + ")";
     mod.ejecutarSQL(sql);
 }
Exemple #3
0
 public void insertar(EntidadEstudiante entidad)
 {
     sql = "INSERT INTO estudiante ("
           + "id_estudiante,"
           + "nombre,"
           + "apellido,"
           + "direccion,"
           + "edad,"
           + "id_materia"
           + ") VALUES ("
           + EntidadEstudiante.Id_estudiante + ","
           + "'" + EntidadEstudiante.NombreE + "',"
           + "'" + EntidadEstudiante.ApellidoE + "',"
           + "'" + EntidadEstudiante.Direccion + "',"
           + "'" + EntidadEstudiante.Edad + "',"
           + "'" + EntidadEstudiante.Id_materiaE + "'"
           + ")";
     mod.ejecutarSQL(sql);
 }