I am not able to declare cursor. what is significance of cursor in mysql
declare c1 cursor for select name from record
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare c1 cursor for select name from record' at line 1