Nothing to do with PHP...

SELECT * FROM myTable WHERE ID IN (1,3,7,9);

If you're using MySQL, read the manual:

http://www.mysql.com/documentation/mysql/bychapter/

---John Holmes...

> -----Original Message-----
> From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 16, 2002 7:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] select statement
> 
> Hi all,
> 
> 
> I want to select some records with e.g. ID's 1,3,7 and 8
> How can this be done best?
> 
> is it: SELECT * FROM myTable WHERE ID=1,3,7,8 ??
> 
> 
> thx. Wilbert
> 
> 
> -------------------------
> Pas de Deux
> Van Mierisstraat 25
> 2526 NM Den Haag
> tel 070 4450855
> fax 070 4450852
> http://www.pdd.nl
> [EMAIL PROTECTED]
> -------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to