Re: range question for db query

From: Date: Wed, 13 Dec 2000 13:28:34 +0000
Subject: Re: range question for db query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30089@lists.php.net to get a copy of this message
Hi Jon! try using SQL Between function... select * from table where age between 9 and 21 and sex = 'male' good luck Marcelo Gulin Jon Rosenberg escribió: > if i have a column in mysql that holds an age, and I want to send a query to > mysql that says retrieve the record if age is between 10 and 20, how do I > construct that query and use it with other search options, also..like below? > > select * from table where age = (>9 and <21) and sex = male..etc > > Thanks! > > Jon > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#30089) next »