【问题标题】:Error "BIND VARIABLE "N" NOT DECLARED" when running PL/SQL program运行 PL/SQL 程序时出现错误“BIND VARIABLE "N" NOT DECLARED”
【发布时间】: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


猜你喜欢
  • 2016-09-15
  • 2020-06-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-12-03
  • 2020-10-28
  • 2017-11-25
  • 1970-01-01
相关资源
最近更新 更多