Tuesday 17 May 2011

Difference between Function, Procedure and Stored Routine in MySQL

A quick summary:

A stored routine is either a procedure or a function.

A procedure is invoked using a CALL statement and can only pass back values using output variables.

A function can be called from inside a statement just like any other function and can return a scalar value.

reference: http://dev.mysql.com/doc/refman/5.0/en/stored-routines-syntax.html

------------------------------------------------------------------------
Difference between Function, Procedure and Stored Routine in MySQL

No comments:

Post a Comment

Please post any queries and comments here.