File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes DB2 UDB 9.x and CURSORS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 UDB 9.x and CURSORS" Watch "DB2 UDB 9.x and CURSORS" New topic
Author

DB2 UDB 9.x and CURSORS

Ramya Iyer
Ranch Hand

Joined: Jul 29, 2003
Posts: 66
Hi, I have used cursors in Oracle and executed them from java, however I am not able to find out the DB2 Type to be set in my registerOutParameter. Can anyone suggest what it should be?


CREATE PROCEDURE getRecords () LANGUAGE SQL
DYNAMIC RESULT SETS 1
BEGIN
DECLARE C1 CURSOR FOR SELECT user_id, pswrd, answ_sec_text FROM indv_temp;
OPEN C1;
RETURN;
END

Regards,
Ramya.
 
Don't get me started about those stupid light bulbs.
 
subject: DB2 UDB 9.x and CURSORS
 
Similar Threads
Accessing multiple resultsets
Set cursor from a .cur file.
JSP - Unsupported Operation Exception
Handling cursor declared in oracle in java program
Callable Statement - Cursors