[英]I try to correct this error but I failed what is the error in this program?
[英]what is the error in this program?
我已经编写了以下pl / sql程序,无法检测到该错误:
declare
variable a number;
b number:=2354;
begin
b:=:a;
end;
的错误是
SP2-0552:未声明绑定变量“ A”。
请帮助...
VARIABLE是一个SQL * PLus关键字。 因此,您需要将其移至PL / SQL声明之外:
SQL> variable a number;
SQL>
SQL> declare
2 b number:=2354;
3 begin
4 :a := b;
5 end;
6 /
PL/SQL procedure successfully completed.
SQL>
SQL> print a
A
----------
2354
SQL>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.