3 ms·
In postgres you would use generate_series for that. http://www.postgresql.org/docs/current/static/functions-srf.html http://www.postgresql.org/docs/current/sta
by JonnieCache 12y ago
In postgres you would use generate_series for that.
http://www.postgresql.org/docs/current/static/functions-srf.html http://www.postgresql.org/docs/current/static/functions-srf....
- greggyb 12y agoNeat. It seems we can simulate this behavior in TSQL[0] by using recursive CTEs in a function. [0]https://developer42.wordpress.com/2014/09/17/t-sql-generate-series-getting-a-list-of-numbers-in-a-given-range/ https://developer42.wordpress.com/2014/09/17/t-sql-generate-...