Oracle Stored Procedure Error

Source: Internet
Author: User
* ERRORatline1: ORA-06550: line1, column7: PLS-00221: GET_SALisnotaprocedureorisundefinedORA-06550: line1, column7: PLSQL: Statementignored errors like this occur because the return is not assigned to one, so 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 has an error like this because it is not assigned to one, so 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

An error similar to this occurs because the returned value is not assigned to a value.

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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.