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 does sign mean sql?

790


What are triggers and its uses?

826


what is the syntax for using sql_variant_property? : Transact sql

738


Which is faster subquery or join?

881


what is a composite key ? : Sql dba

824


what is the difference between myisam static and myisam dynamic? : Sql dba

811


How to start the command-line sql*plus?

777


Mention what plvcmt and plvrb does in pl/sql?

863


What are the popular database management systems in the it industry?

757


What is data types in sql?

736


What are types of indexes in sql?

776


Can delete statement be rollbacked?

753


How many scalar data types are supported in pl/sql?

747


Difference between table function and pipelined function?

790


Why do we create stored procedures & functions in pl/sql and how are they different?

727