accessman2
Registered User.
- Local time
- Today, 07:57
- Joined
- Sep 15, 2005
- Messages
- 335
Stored procedures are different from functions in that they do not return values in place of their names and they cannot be used directly in an expression.
I found this statement in the book online. Does that means that only User Defined Function can return the results, whereas Stored Procedure cannot do that. And, User Defined Function can be applied inside the statement, such as select tbl1.field0, function(1,2) from tbl1.......
whereas Stored Procedure cannot do that, it's only allowed to execute one statement, such as Exec Prod1. ...
Is that correct?
I found this statement in the book online. Does that means that only User Defined Function can return the results, whereas Stored Procedure cannot do that. And, User Defined Function can be applied inside the statement, such as select tbl1.field0, function(1,2) from tbl1.......
whereas Stored Procedure cannot do that, it's only allowed to execute one statement, such as Exec Prod1. ...
Is that correct?