what is meant by forward declaration in functions?
Answers were Sorted based on User's Feedback
Answer / priyanka samal
Forward declaration means:first you declare the function
what function u want to use in package.atlast doing all the
details of procedure whatever u taken in package
specification.then u define all the details or body part of
function.
2:if u not define function first,there is aerror u have
faced.when u passed this function in procedure
defination,there is a error u faced in compilation.The
procedure can't recognized that function.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / swapna
Forward Declaration means.. If you are defining a package
body having two procedures , If u want to use second
procedure in the defination of first procedure.
You have to declare the second package with its arguments
(if have) before using in the defination of first
procedure.its labled as forward declaration.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / papia
You must declare the identifier before referencing them.
It consists of the subprogram specification teminated by a
semicolon.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / raghavendra
declaration first defination later is nothing but a forward
declaration
Is This Answer Correct ? | 2 Yes | 6 No |
How do I copy a table in sql?
types of exceptions and what is meant by pragma autonomous_transaction ?what is the use.
write sub query for eliminating duplicate rows using analytical function?
what is the difference between nested subquery and correlated subquery?
Why do we go for stored procedures?
What is the file extension for sql database?
How do I send sql query results to excel?
What is the difference between view and stored procedure?
Table name: T1, it has only one column. col1 ------ c b a b b b b d s a a t s Requirement: I need the following output from the above base table by using SQL query. col1 Cnt ----- ------- a 3 b 5 Others 5 Please help. Thanks Guru v.gurus@in.com
Is there any problem if we use commit repeatedly after each dml statement in a plsq procedure ? (eg. there are 10 update stmt and using 10 commit stmt after each update stmt)
Is there a way to automate sql execution from the command-line, batch job or shell script?
what is commit? : Sql dba