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 "Dan Parry" on 12/20/05 14:13

WHERE id IN (1,2,3)

Is the same as saying WHERE id = 1 OR id = 2 OR id = 3

Few more details in this link

http://www.w3schools.com/sql/sql_in.asp

HTH

Dan

-----Original Message-----
From: Ross [mailto:ross@aztechost.com]
Sent: 20 December 2005 12:07
To: php-general@lists.php.net
Subject: [PHP] can someone explain this query to me

$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??

Ross

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

__________ NOD32 1.1328 (20051219) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

 

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

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