Re: [SQL] CTEs and re-use

Поиск
Список
Период
Сортировка
Искать
От
Rob Sargent
Тема
Re: [SQL] CTEs and re-use
Дата
Msg-id
2B9243AD-09BA-4E0D-9805-5A1E1409F0FA@gmail.com
Список
Дерево обсуждения
[SQL] CTEs and re-use Rob Sargent <robjsargent@gmail.com>
Re: [SQL] CTEs and re-use Rosser Schwarz <rosser.schwarz@gmail.com>
Re: [SQL] CTEs and re-use Rob Sargent <robjsargent@gmail.com>
Re: [SQL] CTEs and re-use "David G. Johnston" <david.g.johnston@gmail.com>

> On Apr 11, 2017, at 8:43 PM, David G. Johnston  wrote:
> 
> On Tuesday, April 11, 2017, Rob Sargent  wrote:
> If ‘on commit drop’ does the trick that clears the annoyance but still wondering if there’s a way to retain the product of the CTE/select for further processing without resorting to a temp table.
> 
> A CTE is a same-query-only temp table.  If you need it to persist post query you have to use a real temporary table.
> 
> David J. 

Right then.  Thought I might be missing some nifty construct.  A little surprised but oh, well.

Thanks for taking the time.
rjs



В списке pgsql-sql по дате отправления
От: David G. Johnston
Дата:
Сообщение: Re: [SQL] CTEs and re-use
От: Rob Sargent
Дата:
Сообщение: Re: [SQL] CTEs and re-use
FAQ