in procedure how to return a value

Answer Posted / amit

In a procedure, we can return a value using OUT PARAMETER
or EVEN USING IN OUT PARAMETER.

For Eg:

CREATE OR REPLACE PROCEDURE add_num(a IN NUMBER, b IN OUT
NUMBER) IS
BEGIN
b:= a + b;
END add_num;

The IN OUT / OUT parameters can be modified within PLSQL
block and the updated values of this parameter can be
refered using a actual paramter once the execution of this
procedure is completed.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are do's and dont's of Interface?

2123


Hi  Friends this is preetham, i am  searching for job on oracle apps(technical) i put 3 years fake exp, so any one  please could you help me for realtime interview  questions and 9739782164 this is my no srpsrp777@gmail.Com please guys please provide your no for contact i have a doubts i want to clarify

1827


How can you achieve loose coupling in soa framework?

991


Pls tel me the best text book for Oracle Apps 11i Tech? & I want D2K Text book also?

1883


What do you understand by concurrent programs?

810


List the various types of value set.

820


pls send me out bound code of supplers,site,bankiformation code pls as soon as

2032


A program must be written which accepts date parameter. The date parameter will accept data in the format DD/MM/YYYY. This data has to be validated and post validation, the following details have to be displayed for this date parameter 1. Input date must be defaulted to sysdate, It can be overridden by any other date. 2. Financial year should be displayed for this date parameter. Eg: If the input date is 30/11/2010, the financial year must be displayed as 1. From Date : 01-Aprr-2010 To Date: 31-Mar-2011 3. Calendar year and Calendar month must also be displayed. 4. The next payment cycle (say for EB), must be displayed based on this date parameter. 5. The previous payment must also be displayed based on this date.

1959


Do you know what is applysys in oracle application database schema, what is apps?

958


what is the differences between internal requisition and internal sales order?

2387


Tell me how to debug the report?

866


what are the prerequisites for costing transactions?

2882


How to move the one file from one instance to another instance? And your scripts also?

846


What is instead of trigger in where we will use?

923


What are the Standard Reports and Forms in HRMS?

1972