public inbox for [email protected]  
help / color / mirror / Atom feed
From: Bruce Momjian <[email protected]>
To: [email protected]
To: [email protected]
Subject: Re: Documentation does not cover multiple WITH in one query
Date: Fri, 24 Aug 2018 16:29:57 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

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  <[email protected]>        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 +




view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Documentation does not cover multiple WITH in one query
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox