Re: bool and NOT - Mailing list pgsql-general

From Mike Mascari
Subject Re: bool and NOT
Date
Msg-id 39263960.C842C0E6@mascari.com
Whole thread Raw
In response to bool and NOT  (Sascha Ziemann <szi@aibon.ping.de>)
List pgsql-general
Sascha Ziemann wrote:
>
> Hi,
>
> how should I write this:
>
> todolist=# select name from tasks_t where id = 5 and NOT done;
> ERROR:  argument to NOT is type 'numeric', not 'bool'
>
> bis später...
> Sascha

SELECT name FROM tasks_t WHERE id = 5 AND done = False;

Hope that helps,

Mike Mascari

pgsql-general by date:

Previous
From: Sascha Ziemann
Date:
Subject: bool and NOT
Next
From: Dustin Sallings
Date:
Subject: Re: Performance