MySQL Forums
Forum List  »  Views

Re: Store Procedure: last record repeat 2 times (i use cursor)
Posted by: Devart Team
Date: March 28, 2011 08:49AM

Try to avoid using opening cursors. It is better do it with one INSERT ... SELECT statement. So, just create a SELECT query that returns data you need, then rewrite it to INSERT ... SELECT query.

>please tell me why this happens?
Debug your sp with MySQL Stored Procedure Debugger. Hope this feature will be helpfull.

Devart Company,
MySQL management tools
http://www.devart.com/dbforge/mysql/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Store Procedure: last record repeat 2 times (i use cursor)
1638
March 28, 2011 08:49AM


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.