From: Rory Campbell-Lange <rory@campbell-lange.net>
To: Olivier Leprêtre <o.lepretre@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: serie of serie
Date: Sat, 18 Apr 2020 10:00:22 +0100
Message-ID: <20200418090022.GB10901@campbell-lange.net> (raw)
In-Reply-To: <04d801d61551$8d6acf90$a8406eb0$@gmail.com>
References: <04d801d61551$8d6acf90$a8406eb0$@gmail.com>
On 18/04/20, Olivier Leprêtre (o.lepretre@gmail.com) wrote:
> I would like to generate a serie of serie and didn’t find how. With
> generate_series. I can generate a serie
...
> But how can I repeat this serie several times ?
Something like this?
gotest=> select a, b from generate_series(1, 3) as t(a), generate_series(1, 3) as u(b);
a | b
---+---
1 | 1
1 | 2
1 | 3
2 | 1
2 | 2
2 | 3
3 | 1
3 | 2
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rory@campbell-lange.net, o.lepretre@gmail.com
Subject: Re: serie of serie
In-Reply-To: <20200418090022.GB10901@campbell-lange.net>
References: <04d801d61551$8d6acf90$a8406eb0$@gmail.com> <20200418090022.GB10901@campbell-lange.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox