热门标签 | HotTags
当前位置:  开发笔记 > 数据库 > 正文

oracle存储过程出错

*ERRORatline1:ORA-06550:line1,column7:PLS-00221:GET_SALisnotaprocedureorisundefinedORA-06550:line1,column7:PLSQL:Statementignored出现类这样的错误,是因为没有将返回赋给一个,因此fyouwanttoexecuteafuncti

* 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:ret from dual

Or if you do it from plsql

declare  v_ret varchar2(100);begin

  v_ret:=check_login(a,b);end;

推荐阅读
author-avatar
7-好
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有