0% found this document useful (0 votes)
26 views

What Are The Differences Between Stored Procedures and Functions

It is about dbms concepts

Uploaded by

pragathishx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

What Are The Differences Between Stored Procedures and Functions

It is about dbms concepts

Uploaded by

pragathishx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

What are the differences between Stored procedures and functions?

Following are the main differences between functions and procedures:

Functions Procedures
A function has a return type and returns a value. A procedure does not have a return type.
But it returns values using the OUT
parameters.
You cannot use a function with Data Manipulation You can use DML queries such as insert,
queries. Only Select queries are allowed in update, select etc… with procedures.
functions.
A function does not allow output parameters A procedure allows both input and output
parameters.
You cannot manage transactions inside a function. You can manage transactions inside a
procedure.
You cannot call stored procedures from a function You can call a function from a stored
procedure.
You can call a function using a select statement. You cannot call a procedure using select
statements.

You might also like