posted 14 years ago
Hi all,
I have a problem getting the value of the stm.
In the below code I have used sum to get the added value of the column qty_pcs.
PreparedStatement stm=con.prepareStatement("select SUM(qty_pcs) from inward where parti=?");
stm.setString(1, itm);
stm.executeQuery();
Now how will I get the sum value assigned to a integer variable
Thank you in advance