I am converting a stored procedure from mssql to mysql with two cursors in it.
Here is the code I have written so far. The procedure works fine with the first cursor but when I add the inner cursor it doesn't compile.
I have left out the create procedure statement. The error is reported to be near where the second cursor is declared.
Thankful for any help