Re: serie of serie - Mailing list pgsql-general

From Rory Campbell-Lange
Subject Re: serie of serie
Date
Msg-id 20200418090022.GB10901@campbell-lange.net
Whole thread Raw
In response to serie of serie  (Olivier Leprêtre <o.lepretre@gmail.com>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Olivier Leprêtre
Date:
Subject: serie of serie
Next
From: Achilleas Mantzios
Date:
Subject: Re: serie of serie