Re: returning multiple resultsets from mysql
| From: | Lukas Smith | 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:For this example you could use a UNION as well. Also I presume this was a general question. regards, LukasWhy not SELECT * FROM mapPointTypes WHERE id = 1 OR id = 2Sometimes 2 queries using idices may be better than one query which doesn't use any index.