在 Snowflake 中运行以下查询:
SELECT seq8() FROM table(generator(rowCount => 5)) limit 3 offset 2;
为什么offset设置为2时输出是从0开始的?
尝试这样做:
SELECT seq from ( SELECT seq8() as seq FROM table(generator(rowCount => 5)) ) limit 3 offset 2;