I have always heard people saying bad about using cursors and this is especially in Microsoft SQL Server as they are very slow. Is this the case with Cursors on MySQL as well? D
Just create and fill a temporary table. That is how most RDBMS's implement cursors anyway.