RE: [Exim] Syntax for a MySQL select true/false statement

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Hr. Daniel Mikkelsen
Data:  
Para: Eli
CC: exim-users
Asunto: RE: [Exim] Syntax for a MySQL select true/false statement
On Wed, 18 Jun 2003, Eli wrote:

> I was considering something of that sort, maybe using IFNULL(), however I
> don't know how Exim determines a true/false from a SELECT statement? From
> what I read, if it returns ANYTHING, it thinks it passed the condition, so I
> guess *maybe* I could do something like:


Don't worry, it just works. SQL will return 0 for false and 1 for true. The
condition will fail on 0 and succeed on 1.

-- Daniel