Cursors


MySQL supports cursors inside stored programs. The syntax is as in embedded SQL. Cursors have these properties:

Cursor declarations must appear before handler declarations and after variable and condition declarations.

Example:

Retornar