MySQL Forums
Forum List  »  Stored Procedures

Re: Result consisted of more than one row
Posted by: Rick James
Date: March 19, 2014 05:27PM

If REQUESTDATA.mod_date is DEFAULTing to CURRENT_TIMESTAMP, then why not do this:

SET @now := CURRENT_TIMESTAMP();
INSERT ... (...)
VALUES
(..., @now)
SET p_mod_date := @now;

That avoids the extra SELECT.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Result consisted of more than one row
1956
March 19, 2014 05:27PM


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.