oracle 存储过程出错,oracle 存储过程 出错

本文探讨了在Oracle PL/SQL中遇到的ORA-06550错误,焦点在于函数调用时忘记收集返回值。作者提供了修复方法,包括定义变量接收函数返回值,并通过示例展示了如何在变量中存储和查询结果。务必在使用函数时注意返回值处理,以避免此类错误。
摘要由CSDN通过智能技术生成

* ERROR at line 1: ORA-06550: line 1, column 7: PLS-00221: 'GET_SAL' is not a procedure or is undefined ORA-06550: line 1, column 7: PL/SQL: Statement ignored 出现类这样的错误,是因为没有将返回赋给一个 ,因此 f you want to execute a functi

*

ERROR at line 1:

ORA-06550: line 1, column 7:

PLS-00221: 'GET_SAL' is not a procedure or is undefined

ORA-06550: line 1, column 7:

PL/SQL: Statement ignored

出现类似这样的错误,是因为没有将返回值赋给一个值 ,因此

f you want to execute a function you have to collect the return value into a variable.

So you need to define a variable and execute function to return into the variable as below

and run it using the run Script option not the Run Statement option.

variable ret varchar2(20);execute:ret:=check_login(dd,dd);select:retfromdual

Or if you do it from plsql

declarev_ret varchar2(100);beginv_ret:=check_login(a,b);end;

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值