MySQL Forums
Forum List  »  MySQL Workbench

Create and use a cursor?
Posted by: David Spaar
Date: June 12, 2013 01:45PM

I'm trying to find an example of how to create SQL code I can run in a query tab in MySQL Workbench that uses a cursor to retrieve a recordset then process some data from that recordset. I've used cursors in routines, but I don't know enough about workbench to understand the limitations on keywords such as DECLARE and SET (which seem to be giving me errors in syntax). The MySQL manual section on cursors hasn't helped me figure this out. If anyone has a clue I'd really appreciate hearing how (if it's possible) to do this. Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
Create and use a cursor?
1571
June 12, 2013 01:45PM
624
June 13, 2013 02:05AM
550
June 13, 2013 06:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.