Re: can someone explain this query to me

From: Date: Tue, 20 Dec 2005 12:11:13 +0000
Subject: Re: can someone explain this query to me
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-227709@lists.php.net to get a copy of this message
Ross, Ross wrote: > $query = "delete from meetings where id IN (".implode(",", > $ids).")"; > > Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN > do?? It's the equivalent of WHERE id = 1 OR id = 2 OR id = 3 OR id = 4 OR id = 5. Cheers, David -- David Grant http://www.grant.org.uk/

« previous php.general (#227709) next »