Function Vs Stored Procedure In SQL

Many times in interviews, one question is commonly asked, "What is the difference between stored procedure and function?". So, considering the above requirement, I have decided to write this blog to help beginners and job seekers who might want to know about it.

What is a SQL Stored Procedure?

A Stored Procedure is a group of logical SQL statements to perform a specific task, such as insert, select, update, and delete operations on a table, and so on, which are stored in a SQL database.

What is a SQL function ?

A Function is a logical group of SQL statements that perform an operation on the group of SQL statements and return a single value. It is also stored in a database.

Summary

I hope this blog is useful for all readers and that these differences are enough to impress the interviewer. If you have any suggestions, then please contact me.

Post a Comment

www.CodeNirvana.in

Protected by Copyscape
Copyright © Compilemode