Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
create table nick(a varchar, b varchar, num integer);
insert into nick values ('a', 'a', 2), ('b', 'b', 1), ('c', 'c', 3);
with R as (
select a, b, generate_series(1, num) from nick
select a, b from R;
Copy link

autogeosystems commented Apr 1, 2016

wow best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment