Re: returning multiple resultsets from mysql

From: Date: Tue, 30 Aug 2005 07:36:28 +0000
Subject: Re: returning multiple resultsets from mysql
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20652@lists.php.net to get a copy of this message
Michael Wallner wrote:
Hi Massimiliano Arione, you wrote:
Why not SELECT * FROM mapPointTypes WHERE id = 1 OR id = 2
Sometimes 2 queries using idices may be better than one query which doesn't use any index.
For this example you could use a UNION as well. Also I presume this was a general question. regards, Lukas

« previous php.pear.general (#20652) next »