Re: Weird results when using schemas

Поиск
Список
Период
Сортировка
От Geert Jansen
Тема Re: Weird results when using schemas
Дата
Msg-id 43825497.9040401@boskant.nl
обсуждение исходный текст
Ответ на Re: Weird results when using schemas  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Michael Fuhr wrote:
> You refer to shs.city.<column> in the select list, but in the from
> clause you've aliased shs.city to city.  As the SELECT documentation
> says,
>
>   When an alias is provided, it completely hides the actual name
>   of the table or function; for example given FROM foo AS f, the
>   remainder of the SELECT must refer to this FROM item as f not foo.
>

Michael,

Thanks a lot for your very helpful answer (thanks to Stephan Szabo as
well). I've now changed my query as per your indications and indeed it
works ok.

Best regards,
Geert

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

Предыдущее
От: Matthew Terenzio
Дата:
Сообщение: Timestamp with Timezone
Следующее
От: "A.j. Langereis"
Дата:
Сообщение: Difference in indexes