This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB2 UDB 9.x and CURSORS
 
Similar Threads
Handling cursor declared in oracle in java program
Accessing multiple resultsets
Set cursor from a .cur file.
JSP - Unsupported Operation Exception
Callable Statement - Cursors