Re: Operator Precedence problem?

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: John McKown <jmckown(at)prodigy(dot)net>
Cc: pgsql-sql(at)hub(dot)org
Subject: Re: Operator Precedence problem?
Date: 2000-08-12 13:59:24
Message-ID: 3.0.5.32.20000812235924.0242ad80@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

At 08:53 12/08/00 -0500, John McKown wrote:
>Every language that I've ever used (other than APL) has the precedence of
>"or" being less than "and". So I would always expect the "and" clauses to
>be evaluated first, then the "or". Just like in math, where in an
>equation, I expect that the multiplication (and) is done before the
>addition (or). Unless modified by parentheses just as in your second
>example.

You're quite right; I think I must have been punch drunk from beating my
head against another problem. Thanks.

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2000-08-12 15:56:30 Re: Operator Precedence problem?
Previous Message John McKown 2000-08-12 13:53:54 Re: Operator Precedence problem?