MySQL Forums
Forum List  »  Newbie

Re: ON DUPLICATE KEY UPDATE
Posted by: Peter Brawley
Date: October 06, 2016 11:24AM

> Thanks for reply. However, in the stored procedure I need 10 unique random numbers inserted that are specified in the while loop. Using Ignore will drop records. Sorry for not explaining clearly.

Yes, I understand that. Test each insert with Row_Count(), increment your counter only if it's 1.

Options: ReplyQuote


Subject
Written By
Posted
M A
October 02, 2016 07:55PM
October 02, 2016 11:58PM
M A
October 05, 2016 12:23AM
October 05, 2016 09:53AM
M A
October 05, 2016 09:43PM
Re: ON DUPLICATE KEY UPDATE
October 06, 2016 11:24AM
M A
October 06, 2016 08:59PM
October 06, 2016 09:16PM


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.