Re: Re: and statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



err i mean ... an 'or' statement sry

is there an 'and' statement for mysql, when you are doing multiple "where"s?

MySQL allows SQL statements that support both AND and OR. With OR, you can often use IN instead.
SELECT columns FROM tablename WHERE (condition1) AND (condition2)...


All of this is in the MySQL manual, of course.

Larry

PS Technically speaking, this question would have been more appropriate on a MySQL list (or the PHP-DB list).

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux