Hot answers tagged

1

you can use generate_series() for that: insert into field (textfield, idcal) select '', c.idcal from calendar c where idcal = 42 cross join generate_series(1, c.numberoffields) as g(f)


Only top voted, non community-wiki answers of a minimum length are eligible