Witam Wszytskich,
mam następujący problem, jak wykonuje zapytanie do bazy. Zapytanie typu:
connect = DriverManager.getConnection("jdbc:firebirdsql:localhost:C:/DB1.FDB", "user","pass");
Statement stm = connect.createStatement();
ResultSet rs = stm.executeQuery("SELECT * FROM STUDENT_TABLE");
while(rs.next()) {
String s = rs.getString("STUDENT_NAZWISKO");
System.out.println(i + ". " + s);
}
lata bezproblemowo, ale jak juz się próbuje wywołać procedure to juz nie trybi. Np:
connect = DriverManager.getConnection("jdbc:firebirdsql:localhost:C:/DB1.FDB", "user","pass");
Statement stm = connect.createStatement();
ResultSet rs = stm.executeQuery("EXECUTE PROCEDURE KIERUNEK_DODAJ('nowy_k')");
generowany jest następujący błąd: Query did not return a result set.
Prosze o sugestię.