gpt4 book ai didi

firebird - 生成数字范围的最快方法

转载 作者:行者123 更新时间:2023-12-02 19:34:54 25 4
gpt4 key购买 nike

生成两个值之间的数字的最快方法是什么。

例如:
第一个值:6,000,000
第二个值:7,500,000

我必须创建 1,500,000 行,如下所示

 6,000,001
6,000,002
.
.
7,500,000

最佳答案

这对我有用:

create or alter procedure GET_INTEGER_RANGE (
INICIO integer,
FIN integer)
returns (
ACTUAL integer)
AS
begin
actual = inicio;
while (actual<=fin) do
begin
suspend;
actual = actual +1;
end
end

SELECT * FROM GET_INTEGER_RANGE(6000000,7500000);

关于firebird - 生成数字范围的最快方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39751643/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com