 
			
				22/07/2008, 01:33
			
			
			     |  
      |    |    |    Fecha de Ingreso: junio-2008  
						Mensajes: 168
					  Antigüedad: 17 años, 4 meses Puntos: 0     |        |  
  |      Respuesta: Consulta SqlExceptio column not found        Más facil de lo q pensaba   
//obtener el cod materia dado un codGrupo 
  public int obtCodMateria(String pCodGrupo,Connection pCon) throws 
            SQLException { 
        int codMateria = 0; 
        String sql="SELECT codMateria FROM grupo WHERE cod='"+pCodGrupo+"';"; 
        Statement stmt = pCon.createStatement(); 
        ResultSet rs = stmt.executeQuery(sql);        
        while ( rs.next()) {          
            codMateria = rs.getInt("codMateria");  
        } 
      return codMateria; 
    }           |