Re: cursor not open error (error code :1326)
You are trying to close the cursor c1 twice. First time - after the 'if no_rows' condition, and second time - at the end. Have a look at this example -
Cursors.
Try to debug your sp with a
code debugger. It will help to understand what happened.
Also, you might resolve your task with
INSERT...SELECT statement, without any cursors, i.e. -
INSERT INTO customertrans(customerID) SELECT customerID from master;
Devart Company,
MySQL management tools
http://www.devart.com/dbforge/mysql/
Subject
Views
Written By
Posted
7923
February 04, 2011 01:22AM
Re: cursor not open error (error code :1326)
3875
February 04, 2011 02:50AM
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.