Bug #68758 Procedures: Simpler iteration through result of SELECT

Submitted: 24 Mar 2013 9:09
Reporter: Ondrej Zizka Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Stored Routines Severity:S4 (Feature request)
Version:5.6 OS:Any
Assigned to: CPU Architecture:Any

[24 Mar 2013 9:09] Ondrej Zizka
Description:
Currently, to go through a result, one has to use quite complex syntax.
http://dev.mysql.com/doc/refman/5.0/en/cursors.html

It would be nice if one could iterate like this:

FOR (id, data) AS SELECT id, data FROM test.t1 BEGIN
   ## ... do something...
   IF ...
      CONTINUE;
   ...
END

Thanks for considering.

How to repeat:
.

Suggested fix:
.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
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.