MySQL Forums
Forum List  »  Stored Procedures

Re: get result of executing prepared statement
Posted by: Peter Brawley
Date: May 11, 2015 11:15PM

Is this what you mean?

set @sql = "select x into @v from tbl";
prepare stmt from @sql
execute stmt;
select @v;
drop prepare stmt;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: get result of executing prepared statement
1515
May 11, 2015 11:15PM


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.