SQLException: Vor dem Start der Ergebnismenge
ResultSet rs;
rs = this.orderedProduct.select(" sum(unitstoproduce) "," soNo = "+ soNo);
int sum = Integer.parseInt(rs.getString(1));
Wenn ich versuche, die obige Abfrage innerhalb der Java-Klasse auszuführen, erhalte ich einAusnahm wie nachstehend. Hier ist das ordersProduct (orderedZnAlProduct) die Tabelle
SELECT sum(unitstoproduce) FROM orderedZnAlProduct WHERE soNo = '15005'
java.sql.SQLException: Before start of result set