Visibility of table aliases in CTEs

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Visibility of table aliases in CTEs
Дата
Msg-id 52876D95.4000802@iol.ie
обсуждение исходный текст
Ответы Re: Visibility of table aliases in CTEs  (David Johnston <polobo@yahoo.com>)
Список pgsql-general
Hello all,

In a WITH query, are table aliases within a CTE isolated from the rest
of the query? For example, if I do this -

  with my_cte as (
    select * from my_table t
  )
  ....

- can I re-use the alias "t" elsewhere in the same query?

I had a dig through the appropriate section of the docs, but the answer
wasn't obvious to me there.

Thanks,

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie


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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: log_line_prefix
Следующее
От: Jayadevan
Дата:
Сообщение: Re: log_line_prefix