Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Multiple data sets in MySQL stored procedures

by smiffy (Pilgrim)
on Jan 04, 2009 at 21:55 UTC ( #734060=note: print w/ replies, xml ) Need Help??

in reply to Multiple data sets in MySQL stored procedures

Just providing a cross-reference here. I asked for clarification on this issue, but ended up getting the answers through experimentation.

If one creates a stored procedure that always returns a known number of result sets (probably good practice to do this anyway), the only difference to the "traditional" usage of DBI is that you need to call $sth->more_results() before retrieving each new set (otherwise you don't get the new set.)

So, this means that $sth->more_results() doesn't just mean "are there more results?" but is also the command to retrieve the next result set.

Please see the node I have referenced above for examples.

Comment on Re: Multiple data sets in MySQL stored procedures

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://734060]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2015-11-29 18:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (752 votes), past polls