Re: Expression matching related question - Mailing list pgsql-general

From Peter Hoskin
Subject Re: Expression matching related question
Date
Msg-id 4439710F.8070609@criten.org
Whole thread Raw
In response to Expression matching related question  (Peter Hoskin <peterh@criten.org>)
List pgsql-general
I should of mentioned, left is a bigint and network is an integer

Peter Hoskin wrote:
> Hi,
>
> I wish to do a query such as:
> SELECT * FROM table WHERE column='something' AND column2='something
> else' AND (network='0' OR (left=0 AND network>0));
>
> However, when I execute this in phppgadmin I'm told there is an error
> around the = character in left=0. Can't seem to figure the syntax.
>
> Help would be appreciated.
>
> Regards,
> Peter Hoskin
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Date & Time with time zone
Next
From: Michael Fuhr
Date:
Subject: Re: Expression matching related question