Reputation:
How can I return a cursor from stored procedure in MySQL?
Upvotes: 4
Views: 1892
Reputation: 12226
mysql doesn't support client-side cursors. they exist ONLY in stored procedures.
Upvotes: -1
Reputation: 94645
A cursor is a server side thing. You can't "return" this to a client.
Upvotes: 0
Reputation: 300529
Simply: Don't do it!
Seriously: it's an indication that your design is flawed.
Upvotes: 2