Re: syntax of joins

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: syntax of joins
Дата
Msg-id CAFj8pRBc2Qa+_Zap_8VqOQzjaYWXtkajjhKePKs9pYGnkcoX+w@mail.gmail.com
обсуждение исходный текст
Ответ на syntax of joins  (Andreas <maps.on@gmx.net>)
Ответы Re: syntax of joins  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-sql
Hello

2012/4/6 Andreas <maps.on@gmx.net>:
> hi,
>
> is there a disadvantage to write a join as
>
> select   *
> from    a, b
> where  a.id = b.a_id;
>

> over
>
> select   *
> from    a join b  on  a.id = b.a_id;
>

yes - newer notation has some advantages

* clean specification join predicate and filter predicate
* simple adaptability to outer join
* increased protection against copy/paste bug that introduce Cartesian product

Regards

Pavel Stehule

> --
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql


В списке pgsql-sql по дате отправления:

Предыдущее
От: Andreas
Дата:
Сообщение: syntax of joins
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: syntax of joins