Re: returning multiple resultsets from mysql
| From: | Adam Duston | Date: | Tue, 30 Aug 2005 12:37:08 +0000 |
| Subject: | Re: returning multiple resultsets from mysql | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20667@lists.php.net to get a copy of this message | ||
Thanks very much Lukas. i'm presuming the mysqli extension doesn't
work, but i'll try just to make sure (as soon as i get back from work
tonight...this stuff is addictive!)
for Massimiliano and Michael, about the example: that was just a
trivial example for purposes of illustration. in my application i'm
selecting from several tables with heterogeneous column definitions.
i'm working under the presumption that there is a considerable
performance hit from multiple db roundtrips; hence my desire to do
everything in one query. if i'm wrong about the performance issue,
then please let me know.
thanks to everyone for your help!
adam
On 8/30/05, Lukas Smith <lsmith@php.net> wrote:
> Adam Duston wrote:
>
> > i would expect the second query (returning two resultsets) to be
> > valid, but apparently it is not. Is there anyway to get the results of
> > multiple selects without multiple roundtrips to the database using
> > Pear DB with MySql?
>
> no .. as its not supported by the underlying extension.
>
> the mysqli driver could in theory be extended to allow this:
> http://php.net/manual/en/function.mysqli-multi-query.php
>
> you can open a feature request on this ... i would not be very hopeful
> to get it supported any time soon or ever though.
>
> regards,
> Lukas
>
>
--
aduston@uchicago.edu
312-375-9879