What is Difference between Function and Stored Procedure?

by kethlin| Views: 459

What is Difference between Function and Stored Procedure?

Answers (1)
 
jack Said..

User Defined Functions can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be. User Defined Functions that return tables can be treated as another rowset. This can be used in JOINs with other tables. Inline User Defined Functions can be thought of as views that take parameters and can be used in JOINs and other Rowset operations.



Register or Login to Post Your Opinion/Answer