Re: (+) oracle notation - Mailing list pgsql-general

From Efrain Caro
Subject Re: (+) oracle notation
Date
Msg-id LAW2-OE297XsFD14ihh00000866@hotmail.com
Whole thread Raw
In response to Re: (+) oracle notation  (<bmccoy@chapelperilous.net>)
Responses prefer (+) oracle notation  ("Edmar Wiggers" <edmar@brasmap.com>)
List pgsql-general
> SELECT <fields> FROM <tables> WHERE table1.field (+) = table2.field;
>
> This will return all appropriate rows in table1, even if no
> corresponding value exists in table2 (it'll list an empty value for that
> column in the output tuples if no value exists).

In order to do that you should put the (+) operator at the "possible nulls"
side of the equality. It should go this way:
SELECT <fields> FROM <tables> WHERE table1.field = table2.field (+);

pgsql-general by date:

Previous
From: Marko Kreen
Date:
Subject: Re: MySQL PASSWORD('x') function workalike
Next
From: Yohans Mendoza
Date:
Subject: to_char