【发布时间】:2022-06-16 23:19:34
【问题描述】:
我在我的问题中找不到数字阶乘的错误,不知道为什么会得到它
'''
SQL> declare
2 n number;
3 i number;
4 fact number;
5 begin
6 n:=:n;
7 i:=1;
8 fact:=1;
9 while i<=n loop then
10 fact:=fact*i;
11 i:=i+1;
12 end loop;
13 dbms_output.put_line('factorial of this number is ' ||fact);
14 end;
15
16 /
SP2-0552: Bind variable "N" not declared.
'''
【问题讨论】:
-
你认为第 6 行是做什么的?
标签: plsql plsqldeveloper