From: operationsengineer1@yahoo.com
To: pgsql-sql@postgresql.org
Subject: Problem w/ Join... Using (...) Syntax
Date: Mon, 26 Jun 2006 16:03:55 -0700 (PDT)
Message-ID: <20060626230355.79032.qmail@web33301.mail.mud.yahoo.com> (raw)
how does one apply the JOIN... USING (...) syntax when
the primary key and foreign key have different names?
JOIN t_employee USING (employee_id)
works perfect when the primary and foreign key are
both named employee_id.
however, it one is named inspector_id and the other
employee_id, it doesn't work - or at least i haven't
been able to find the appropriate syntax through
searching and trial and error.
tia...
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: operationsengineer1@yahoo.com
Subject: Re: Problem w/ Join... Using (...) Syntax
In-Reply-To: <20060626230355.79032.qmail@web33301.mail.mud.yahoo.com>
* 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