Search Postgresql Archives

Re: serie of serie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/04/20, Olivier Leprêtre (o.lepretre@xxxxxxxxx) 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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux