How do we return a cursor from MySQL Stored Procedure (Routines). Or another approach to return a list of values back to a Java program from the MySQL Proc. We are trying to implement the similar functionality as Sys Ref Cursor in Oracle and looks like there is similar thing in MySQL. But wondering as this a very common usecase, what should be a the way to get a list of values returned by a proc in mysql.
Version – MySQL-server-5.5.15
I hope that helps: What is the equivalent of Oracle’s REF CURSOR in MySQL when using JDBC?
Here is the latest version of mentioned in thread above reference:
http://dev.mysql.com/doc/refman/5.6/en/connector-j-reference-implementation-notes.html
It still says that “MySQL does not support SQL cursors, and the JDBC driver doesn’t emulate them, so “setCursorName()” has no effect.“