This content has been marked as final. Show 2 replies
They are different in many different ways, there was a thread on this issue recently.
Just a few examples are:
1. A function can be used in an if then else to test for condition
2. A procedure can pass back mulitple output parameters
3. A function can be used in an SQL statement
There are many others, this sort of thing is RTFM.
The two code fragment examples you gave are not the same at all.