Re: (+) oracle notation

Поиск
Список
Период
Сортировка
От Efrain Caro
Тема Re: (+) oracle notation
Дата
Msg-id LAW2-OE297XsFD14ihh00000866@hotmail.com
обсуждение исходный текст
Ответ на Re: (+) oracle notation  (<bmccoy@chapelperilous.net>)
Ответы prefer (+) oracle notation  ("Edmar Wiggers" <edmar@brasmap.com>)
Список 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 по дате отправления:

Предыдущее
От: Marko Kreen
Дата:
Сообщение: Re: MySQL PASSWORD('x') function workalike
Следующее
От: Yohans Mendoza
Дата:
Сообщение: to_char