You are here: Re: [PHP] can someone explain this query to me « PHP « IT news, forums, messages
Re: [PHP] can someone explain this query to me

Posted by David Grant on 12/20/05 14:11

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация