MySQL Forums
Forum List  »  InnoDB

Re: using cursor
Posted by: Claude Veigas
Date: July 20, 2010 05:35AM

Try this is you haven't done so already :

DELIMITER |

create procedure myCursor()
begin

declare l_emp_name VARCHAR(30);
declare cur_1 cursor for select empName from employee;

open cur_1;
fetch cur_1 into l_emp_name;
close cur_1;

end |


DELIMITER ;

Hope his helps,
Cheers,
Claude Veigas

Options: ReplyQuote


Subject
Views
Written By
Posted
4369
June 18, 2010 03:45AM
Re: using cursor
1586
July 20, 2010 05:35AM
1343
September 15, 2010 11:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.