| Author |
How to return a cursor in DB2
|
Aravind Bhat
Ranch Hand
Joined: Jun 16, 2006
Posts: 32
|
|
Hi guys , I want to return the cursor in db2 to retrieve the resultset from my java application .Keeping the cursor open dosen't help and the resultset always returns a null though the procedure runs fine from the command line. Any ideas . Regards, Av~ CallableStatement stmt3 = HibernateApp.getHibernateSession().connection().prepareCall("{call answers_select_id( ? )}"); stmt3.setString(1,20); stmt3.execute(); ResultSet rs1 = stmt3.getResultSet(); System.out.println("rs1 " + rs1); --> returns null
|
 |
 |
|
|
subject: How to return a cursor in DB2
|
|
|