Re: query question

From: Date: Tue, 14 Jan 2003 18:01:12 +0000
Subject: Re: query question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131593@lists.php.net to get a copy of this message
On Wednesday 15 January 2003 01:47, Kelly Meeks wrote: > I've got an array of values, that I need to query against a database to see > if any records have any of the values in the array - the array is a list of > zip codes, and the database contains a list of stores. Basically i need to > find what stores have zip codes in the array. > > I know that mysql doesn't support subquerys - is there a workaround for > this kind of scenario? This is more of a mysql question and should be asked on the php-db list if not the mysql list. What you need is something like: "SELECT doo FROM dah WHERE dee IN('val1', 'val2', ..., 'valN'" -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* PEGGY FLEMMING is stealing BASKET BALLS to feed the babies in VERMONT. */

« previous php.general (#131593) next »