| A CROSS JOIN or INNER JOIN is a simple Cartesian product, the same
| as you get from listing the two items at the top level of FROM. CROSS
| JOIN is equivalent to INNER JOIN ON (TRUE), that is, no rows are
| removed by qualification. These join types are just a notational
| convenience, since they do nothing you couldn't do with plain FROM
| and WHERE.
Is there really no difference between these two queries?
FROM ta, tb, tc, [...]
WHERE ta.foo = tb.bar
AND tb.bar = tc.baz
JOIN tb ON tb.bar = ta.foo
JOIN tc ON tc.baz = tb.bar
I thought that by using the second form, you would be able to do
'explicit' joins, effectivly telling the planner in which order to
join multiple tables (in case you have to join 10+ tables)?
pgsql-docs by date
|Next:||From: Bruce Momjian||Date: 2003-10-29 20:44:59|
|Subject: Re: 7.4 compatibility question|
|Previous:||From: Tom Lane||Date: 2003-10-27 21:28:24|
|Subject: Re: [GENERAL] sequences: cache_value, log_cnt, is_cycled columns |