Explanation
The keyword FOR was not found in the DECLARE CURSOR statement.
User Response
Insert the keyword FOR into the DECLARE CURSOR statement.