In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Trond E. Hundal") wrote:
> Is it possible to run sql expressions in an if expression???
> Eks: IF(table1.id > 12, table1.id, 'Not')
Do you mean something like "select if(table1.id > 12, table1.id, 'Not')
from foo where somefield='bar'"? Yes, it's possible. See the mysql.com
manual for details.
--
CC
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]