what is difference between procedure and function

Answer Posted / p.rajasekar

Function:
1.Function Always Return values
2.We can call the function in select Query
3.We can return more than one values using Out put
paramaetes
4.Genrally we can use function as calculatevalues
5.We can insert,update or delte value with the help
function in a select query
Procedure:
1.Procedure doesnot always return value
2.We can't call procedure in Select query
3.We can return more than one value using Out put
parameters in procedure
4.Genarally procudures are using as business logic

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the constraints available in sql?

781


Which is faster union or join?

702


Write a sql query to convert all character to uppercase after hypen.

1169


Can you load data into multiple tables at once? : aql loader

800


how to use myisamchk to check or repair myisam tables? : Sql dba

711






What do you mean by table in sql?

696


what is online transaction processing (oltp)? : Sql dba

713


What are analytical functions in sql?

733


mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql

774


Can we insert data into materialized view?

710


How do you declare a constant?

708


How to call a javascript function from pl sql?

760


How do I run a script in sql developer?

703


Is and as keyword in pl sql?

686


What is a full join?

707