From: Bruno Wolff III <bruno@wolff.to>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: joins
Date: Tue, 5 Nov 2002 19:01:40 -0600
Message-ID: <20021106010140.GA5458@wolff.to> (raw)
In-Reply-To: <01dd01c28439$a48de480$de138f80@virginia.edu>
References: <01dd01c28439$a48de480$de138f80@virginia.edu>
On Mon, Nov 04, 2002 at 14:37:42 -0500,
Jodi Kanter <jkanter@virginia.edu> wrote:
> Can anyone tell me if there is any real difference between the two different ways to create tables joins?
>
> select field1, field2 from table1 join table2 using (field3)
>
> vs.
>
> select field1, field2 from table1, table 2 where table1.field3=table2.field3
The first form fixes the join order while the second allows the planner to
choose what order to do the joins in. For just two tables this doesn't
make a difference.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, jkanter@virginia.edu
Subject: Re: joins
In-Reply-To: <20021106010140.GA5458@wolff.to>
References: <01dd01c28439$a48de480$de138f80@virginia.edu> <20021106010140.GA5458@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox