MySQL Forums :: Stored Procedures :: ROW_COUNT() results in NULL from stored procedure


Advanced Search

ROW_COUNT() results in NULL from stored procedure
Posted by: Frank Yingst ()
Date: May 18, 2016 06:32PM

Thank you for erasing my post. I will try it again after receiving
Possible hack attempt detected. The posted form data was rejected.
You did not provide the correct code for the spam prevention check. Please try again.-- OK I Can't read 'em that's why.

output parameter: OUT p_rowsAffected INT

PREPARE stmt FROM @sql;
EXECUTE stmt;
SET p_rowsAffected = ROW_COUNT(); // all I get out of this is NULL
DEALLOCATE PREPARE stmt;

Options: ReplyQuote


Subject Views Written By Posted
ROW_COUNT() results in NULL from stored procedure 2926 Frank Yingst 05/18/2016 06:32PM
Re: ROW_COUNT() results in NULL from stored procedure 378 Peter Brawley 05/18/2016 07:59PM
Re: ROW_COUNT() results in NULL from stored procedure 419 Frank Yingst 05/18/2016 10:06PM
Re: ROW_COUNT() results in NULL from stored procedure 396 Frank Yingst 05/18/2016 08:21PM
Re: ROW_COUNT() results in NULL from stored procedure 392 Peter Brawley 05/19/2016 10:17AM
Re: ROW_COUNT() results in NULL from stored procedure 343 Rick James 06/01/2016 11: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.