这个程序用数据库语言怎么写,求解

如题所述

declare
v_count int:=1;
v_sumTotal int:=2;
v_maxCount int;#给一个值或者直接等于5
v_val1 int:=2;
v_val2 int:=3;
v_val int:=0;
begin
v_maxCount :='&input';//上面等于5这里就要去掉
while(i<v_maxCount)
Loop
v_sumTotal := v_sumTotal + v_val2/v_val1;
v_val := v_val2;
v_val2 := v_val1 + v_val2;
v_val1 := v_val;
v_count := v_count + 1;
end Loop;
Dbms_Output.Put_Line(v_sumTotal);
end;
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答