Re: Problem w/ Join... Using (...) Syntax

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Problem w/ Join... Using (...) Syntax
Дата
Msg-id 20060626231627.GG11926@surnet.cl
обсуждение исходный текст
Ответ на Problem w/ Join... Using (...) Syntax  (<operationsengineer1@yahoo.com>)
Список pgsql-sql
operationsengineer1@yahoo.com wrote:
> 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.

t_inspection JOIN t_employee
ON (t_employee.employee_id = t_inspection.inspector_id)


-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От:
Дата:
Сообщение: Problem w/ Join... Using (...) Syntax
Следующее
От: Kyle Bateman
Дата:
Сообщение: permissions from system catalogs