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

List the various types of value set.

627


Can you explain the difference between architecture followed in 10g & 11g?

665


How do you register report in oracle apps?

635


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

1761


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

665






What is count(*) from po_vendors(any table)?

645


In sequence i want to 11 and 15th values how we will write?

1573


In oracle application how do you debug or trace errors?

641


How is choreography different from orchestration?

655


What is oracle soa suite and what are its different components?

648


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?

637


where to define interorganization transaction charges and what are the different options?

1959


What are the Standard Reports and Forms in HRMS?

1774


what are the balancing segments in AR?

1653


How can we import the data into a database using sql * loader?

682