MySQL Forums :: Stored Procedures :: how to declare cursor in middle of stored procedure


Advanced Search

Re: how to declare cursor in middle of stored procedure
Posted by: Peter Brawley ()
Date: October 19, 2016 09:26AM

> can we declare cursors in middle of the stored program

As the manual says, DECLARE must precede all code in its block, so to declare a cursor mid-routine, create a block for it.

Options: ReplyQuote


Subject Views Written By Posted
how to declare cursor in middle of stored procedure 1852 BHANU PRATAP MUNAGALA 10/19/2016 03:36AM
Re: how to declare cursor in middle of stored procedure 218 Jon Stephens 10/19/2016 06:21AM
Re: how to declare cursor in middle of stored procedure 267 BHANU PRATAP MUNAGALA 10/19/2016 08:22AM
Re: how to declare cursor in middle of stored procedure 323 Peter Brawley 10/19/2016 09:26AM
Re: how to declare cursor in middle of stored procedure 228 BHANU PRATAP MUNAGALA 10/19/2016 10:04AM
Re: how to declare cursor in middle of stored procedure 313 Peter Brawley 10/19/2016 11:10AM
Re: how to declare cursor in middle of stored procedure 244 Rick James 10/19/2016 11:47PM


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.