
January 23rd, 2013, 07:29 AM
|
|
Contributing User
|
|
Join Date: Jan 2013
Location: Italy
Posts: 36
Time spent in forums: 4 h 37 m 48 sec
Reputation Power: 1
|
|
|
Sorry, in MySQL Cursors only exist within Stored Procedure and they can't even be returned to another procedure.
I hope that this solution is acceptable:
* the procedure creates a view
* the applicazion queries that view.
Since views are always global (all users can access them), the view should have a name like:
CONCAT('my_view', CONNECTION_ID());
and you should DROP it (or use CREATE OR REPLACE VIEW).
I hope this helps.
|