Closed. This question does not meet
Stack Overflow guidelines。它当前不接受答案。
想改善这个问题吗?更新问题,以便将其作为
on-topic用于堆栈溢出。
7年前关闭。
Improve this question
当我尝试执行程序时,我得到一个错误对象无效,并且我的代码是关于计算利息的
和我的COD如下
crete or replace procedure cal_intr
(P number,N number,R number)
is
si number(14,2);
ci number(16,2);
begin
si:=(P*N*R)/100;
ci:=power((1+R/100),N));
ci:=P*ci;
dbms_output.put_line('simple intrest is'||si);
dbms_output.put_line('coumpound interest is'||ci);
end cal_intr;
警告:创建过程时出现编译错误。
错误是
SQL> exec cal_intr(1000,2,2)
开始cal_intr(1000,2,2);结束;
第1行发生错误:
ORA-06550:第1行,第7列:
PLS-00905:对象HR.CAL_INTR无效
ORA-06550:第1行,第7列:
PL/SQL:语句被忽略