Example of nested cursors( 3 level deep) (no replies)
(MySQL.com) Here is an example of nested cursor showing parent,child & subchild relation.
The table is : mnudemo(id,nme,pid) where pid is the parent id.
DELIMITER $$
CREATE PROCEDURE 'mnu_demo_proc'()
BEGIN
declare c1id int;
decl