What is the difference between function and procedure in PL/SQL ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A procedure does not have a return value, whereas a function has.
Example:
Notice how the function has a return clause between the parameter list and the ‘as’ keyword. This means that it is expected to have the last statement inside the body of the function read something like:
Where my_varchar2_local_variable is some varchar2 that should be returned by that function.