Re: [INTERFACES] Tables names from query

Поиск
Список
Период
Сортировка
От Bob VonMoss
Тема Re: [INTERFACES] Tables names from query
Дата
Msg-id 36D17C14.4384F7D8@idm.com
обсуждение исходный текст
Ответ на Tables names from query  (Philip Shiels <philip.shiels@jrc.it>)
Список pgsql-interfaces
Philip Shiels wrote:

> SELECT x.y, z.y from x, y where x.key = z.key
>
> The problem with the above is that I get back 2 fields called 'y' and have no
> way of knowing from which tables they've come from.

Do something like this:

SELECT x.y, z.y AS z_y from x, z where x.key = z.key;

> Is there is a way of identifying the originating tables ?




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] Tables names from query
Следующее
От: Michael Davis
Дата:
Сообщение: How do I execute a postges stored procedure or function from Acce ss97?