What is difference between a PROCEDURE & FUNCTION ?

Answers were Sorted based on User's Feedback



What is difference between a PROCEDURE & FUNCTION ?..

Answer / anil kumar jampana

sorry, we can use in,inout,out parameters in functions also.
one more diff. we can use functions in normal sql queries
but we cann't use procedures in sql queries....

Is This Answer Correct ?    9 Yes 0 No

What is difference between a PROCEDURE & FUNCTION ?..

Answer / ace

A function is a special kind of procedure. A function
returns a value in its name. A function can return more
than one value if it returns a ref cursor.

Is This Answer Correct ?    0 Yes 0 No

What is difference between a PROCEDURE & FUNCTION ?..

Answer / naresh bs

The main difference is that, a procedure may return and
value but a function has to return a value.

Is This Answer Correct ?    0 Yes 0 No

What is difference between a PROCEDURE & FUNCTION ?..

Answer / pankaj mehra

Well the main difference between procedures and function is
that the procedure may/may not return any value.it can
return more than one value also.
but functions can return only one value at a time and it
must have return keyword inside the function

Is This Answer Correct ?    3 Yes 4 No

What is difference between a PROCEDURE & FUNCTION ?..

Answer / surajit pathak

We can use in,inout,out parameters in functions also.
The most important difference is we can use functions in
normal sql queries if it is not containing any out
parameters.
but we cann't use procedures in sql queries....

Is This Answer Correct ?    1 Yes 2 No

What is difference between a PROCEDURE & FUNCTION ?..

Answer / chandrasekar.ramasamy

Function accepts only in parameter but procedure accepts
in,out and inout
Function mostly used for mathamatical calculations
But procedure used to execute business logics

Is This Answer Correct ?    0 Yes 11 No

Post New Answer

More SQL PLSQL Interview Questions

What is a natural join sql?

0 Answers  


differentiate between float and double. : Sql dba

0 Answers  


What is Temp Table and type of temp table?

1 Answers   HP, SLK,


Cite the differences between execution of triggers and stored procedures?

0 Answers  


Is there any restriction on the use of union in embedded sql?

0 Answers  






What is sql profiling in oracle?

0 Answers  


Why do we need unique key in a table?

0 Answers  


What type of database is cloud sql?

0 Answers  


what are enums used for in mysql? : Sql dba

0 Answers  


Are sql database names case sensitive?

0 Answers  


What is the usage of the distinct keyword?

0 Answers  


What is a database link?

3 Answers  


Categories