what is the difference between procedure and function

Answer Posted / allabakash

function and procedure both are stored procedures
function contains return clause,where as procedure does not contain return clause
function must return a value, where as procedure may or may not return a value
function can execute as a select statement, where as procedure can execute in anonymous block
we can call function in if statement, we cannot call procedure in if statement
we can call function as a part of expression,where as procedure as a statement
we can pass function as a parameter,where as we cannot pass procedure as a parameter.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

861


Do you know what is applysys in oracle application database schema, what is apps?

954


How can you achieve loose coupling in soa framework?

989


testing tools?

1969


what are the balancing segments in AR?

1855


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

1810


Tell me how to debug the report?

865


Tell me how to find the custom directory in front end?

862


What do you understand by soa?

902


List the various types of value set.

818


List the types of flexfield?

802


What are the Standard Reports and Forms in HRMS?

1972


In oracle application how do you debug or trace errors?

859


Can you define an erp system?

883


can we use look up type instead of a pofile option?or valueset?is it possible how?

1974