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
4277
June 18, 2010 03:45AM
Re: using cursor
1562
July 20, 2010 05:35AM
1322
September 15, 2010 11:38AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.