Exemplo n.º 1
0
 public void modificar(EntidadProfesor entidad)
 {
     sql = "update profesor set "
           + "nombre ='" + entidad.Nombre + "',"
           + "apellido = '" + entidad.Apellido + "'"
           + " where "
           + "id_profesor = " + entidad.Id_profesor;
     mod.ejecutarSQL(sql);
 }
Exemplo n.º 2
0
 public void insertar(EntidadProfesor entidad)
 {
     sql = "insert into profesor ("
           + "id_profesor,"
           + "nombre,"
           + "apellido"
           + ") VALUES ("
           + entidad.Id_profesor + ","
           + "'" + entidad.Nombre + "',"
           + "'" + entidad.Apellido + "'"
           + ")";
     mod.ejecutarSQL(sql);
 }