Function vs. Procedure [message #399506] |
Wed, 22 April 2009 11:12 |
dlwixon
Messages: 92 Registered: September 2008
|
Member |
|
|
Is there a difference in speed between functions and procedures.
I need to either use a function returning a large varchar2 or usa procedure with an out parameter.
Is there a benefit either way?
|
|
|
|
Re: Function vs. Procedure [message #400040 is a reply to message #399506] |
Sat, 25 April 2009 06:41 |
alithegr8@gmail.com
Messages: 5 Registered: February 2009 Location: Saudi Arabia
|
Junior Member |
|
|
A procedure performs an action, whereas a function returns a values.
Depending on the need, you can use function to return a value. If you simply wish to make changes or calculations on the items, then you should go for procedure.
|
|
|