2 ms·
assuming you're on postgres, generate_series() is a far easier option to do exactly what you've described.
by meritt 8y ago
assuming you're on postgres, generate_series() is a far easier option to do exactly what you've described.
- Amezarak 8y agoI'm not sure how much easier it is - the CTE definition and the series definition are extremely similar. Certainly if you have generate_series() or something similar, it's an appropriate solution.