From: | KES <kes-kes(at)yandex(dot)ru> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Documentation does not cover multiple WITH in one query |
Date: | 2018-08-26 09:08:15 |
Message-ID: | 9733511535274495@sas2-db6b18f976b3.qloud-c.yandex.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
Thank you. That is I am looking for.
Never thought that 'WITH' syntax is described at 'SELECT'.
Will be very helpful if this will be mentioned on this page: https://www.postgresql.org/docs/10/static/queries-with.html
For an example:
[ WITH [ RECURSIVE ] with_query [, ...] ]
and with_query is shown as:
with_query_name [ ( column_name [, ...] ) ] AS ( select | values | insert | update | delete )
For full syntax of `WITH` see https://www.postgresql.org/docs/10/static/sql-select.html
Thanks.
24.08.2018, 23:30, "Bruce Momjian" <bruce(at)momjian(dot)us>:
> On Wed, Aug 22, 2018 at 09:24:52AM +0000, PG Doc comments form wrote:
>> The following documentation comment has been logged on the website:
>>
>> Page: https://www.postgresql.org/docs/10/static/queries-with.html
>> Description:
>>
>> Hi. I have found
>> [DOC](https://www.postgresql.org/docs/10/static/queries-with.html)
>>
>> it is fine, but did not cover multiple WITH in one query.
>>
>> I found answer only [here](https://stackoverflow.com/a/38137037/4632019)
>>
>> May you please add the example:
>>
>> WITH table1 AS (...), table2 AS (...) SELECT * FROM table1, table2
>
> Well, the SELECT manual has:
>
> [ WITH [ RECURSIVE ] with_query [, ...] ]
>
> and with_query is shown as:
>
> with_query_name [ ( column_name [, ...] ) ] AS ( select | values | insert | update | delete )
>
> This is standard SQL. I don't think we are going to be able to show
> every possible syntax.
>
> --
> Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
> EnterpriseDB http://enterprisedb.com
>
> + As you are, so once was I. As I am, so you will be. +
> + Ancient Roman grave inscription +
From | Date | Subject | |
---|---|---|---|
Next Message | Milivoj Ivkovic | 2018-08-26 11:00:17 | Re: 25.3. Continuous Archiving : Unix examples with Windows-style variables %-$ |
Previous Message | Tatsuo Ishii | 2018-08-25 22:05:51 | Re: Enhancing protocol.sgml |