WHAT IS THE FORWARDREFERENCE IN PL/SQL?
Answers were Sorted based on User's Feedback
Answer / ranjith
If a stored procedure(Function or Procedure) need to be
called inside another stored procedure in the same package
then the called procedure should be declared before the
calling procedure. This declartion is called Forward
Reference.
Example:
CREATE OR REPLACE PACKAGE BODY pkg_FR_Test
.
.
Begin
prc_FR_Procedure(p_P1 NUMBER, p_P2 VARCHAR2);--> FR
.
.
prc_Call_Procedure(p_Param1 NUMBER)
BEGIN
.
.
prc_FR_Procedure(20, 'Account');
.
.
END prc_FR_Procedure;
END
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / raghav
PL/SQL does not allow forward references. You must declare a variable or constant before referencing it in other statements, including other declarative statements.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ranjith
The above answer is for "Forward Declaration" and not
for "Forward Reference".
Sorry for the confusion.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / veera
declaring the procedures or functions in the package
specification before using them in package body.
Is This Answer Correct ? | 0 Yes | 1 No |
Which oracle apps version you are very confident in?
Tell me how to find the custom directory in front end?
What r the type Models in the system parameters of the report?
which API to return the parameters & valuesets etc
pls send me out bound code of supplers,site,bankiformation code pls as soon as
in oracle workflow if i want to send a mail to the user after sending if the user didn't approve the mail after 10 mins it is automatimatically approved how we can approach?
we have 4 managers if one person logon the system automatically displays his siganature and name how?
I am insert in data to a table X .Which one is better while writing commit statement After each row inset or after all row insert to table.
Is PlaceHolderColumn Function or Procedure? Why we don't write any code in that?
How to create a link between One dependent value set to another Dependent value set
5 Answers Indorama, ManSoft System, Syntel, TE Data,
What is the reason for distribution hold. Why invoices will go on distribution variance hold ??
Can you have two functions with the same name in a pl/sql block?