可能返回不止一行的函数。
Function |
Argument Type |
Return Type |
Description |
generate_series(start,stop) |
int, bigint or numeric |
setof int, setof bigint, or setof numeric(same as argument type) |
生成一系列的值,从开始到停止,步长为1 |
generate_series(start,stop, step) |
int, bigint or numeric |
setof int, setof bigint or setof numeric (same as argument type) |
生成一系列的值,从步骤开始到停止阶段,步长为 |
generate_series(start,stop, step interval) |
timestamp or timestamp with time zone |
setof timestamp or setof timestamp with time zone (same as argument type) |
生成一系列的值,从步骤开始到停止阶段,步长为 |
Function |
Return Type |
Description |
generate_subscripts(array anyarray, dim int) |
setof int |
生成包含给定数组的下标的系列。 |
generate_subscripts(array anyarray, dim int,reverse boolean) |
setof int |
生成包含给定数组的下标的系列。当逆是真的时,该序列以相反的顺序返回。 |