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 is a flexfield? List out its types.

918


please send me forms, xml pulisher questions,answers

1905


In hierarchical structure of a database? we have write query from where we should start?

1955


Suppose for report I have to parameters those are from_date and to_date, so to_date should be greater when compare to from_date, if we are giving to_date is lessthen it must shows some error how we will make?

880


what are the prerequisites for costing transactions?

2905


What is instead of trigger in where we will use?

935


Can you define an erp system?

897


Is soa a part of oracle fusion middleware?

834


How many schemas we have? how many you have used?

1825


What are the different components of soa suite?

953


Do you know what are user profiles in apps. Any examples you can give?

886


What is a value set? List its various types.

872


Can we create tables in apps schema?

874


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.

1969


How do you register report in oracle apps?

889