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 one Module is Biggest Module in oracle apps?
what are the steps to develop a new report?
In interface process we have 1000 records i want to commit every 100 records how? How i can commit every 100 records?
while registering executable and concurent program we register both with application name|<oracle purchasing>? so my question is why we are defining in both concurent program and executable?
How many schemas we have? how many you have used?
what is inbound and outbound interface?
Which oracle applications pl/sql standard apis you are familiar, have you used most of them?
What are Mandatory triggers to write in the block, which is created on view?
In xml report, how to print the headings in every page?
in ap_terms table what data will be stored
Can function be overload?
How can a process be deployed in soa?