Re: Best way to "CALL ... INTO @a, @b"?
> "CALL ... INTO @a, @b" does not work.
Indeed, we can't just make up syntax.
> Apart from rewriting the procedures to store the results in OUT/INOUT variables,
That's what OUT & INOUT vars are for.
> what are the preferred ways to extract data from their resultsets into local variables?
If you need to persist parts of a resultset in MySQL memory space for some reason, the alternative is to save the desired results to a temp table.
Most often, though, if a resultset needs to be processed, it'll be done in an application language (PHP, Perl, Java, C# &c), and in those languages retrieval of a resultset already stores result vectors into the app's memory.
Subject
Views
Written By
Posted
2142
March 17, 2013 07:04AM
Re: Best way to "CALL ... INTO @a, @b"?
1241
March 17, 2013 08:48AM
2095
March 17, 2013 10:13AM
1109
March 20, 2013 10:33AM
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.