difference between join syntax

Поиск
Список
Период
Сортировка
От Natan
Тема difference between join syntax
Дата
Msg-id 41326EBE.6080303@mandic.com.br
обсуждение исходный текст
Ответы Re: difference between join syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Can anyone tell me if there is any difference between these two commands:

select * from table1, table2 where table1.id = table2.id
   and
select * from table1 inner join table 2 on table1.id = table2.id

I checked the query plan for both and they appear exactly the same. But
in this case, i am working with only two tables in a very simple
join.... What i would like to know is: in a production environment with
lots of joins and where clauses, does it make any difference to write in
one form or in the other, or the joins are like shortcuts to the first form?


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

Предыдущее
От: Anton Melser
Дата:
Сообщение: test, don't read
Следующее
От: Tom Lane
Дата:
Сообщение: Re: difference between join syntax