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
How do you rank data in sql?
When can we use the where clause and the having clause?
Can instead of triggers be used to fire once for each statement on a view?
What is dml with example?
How can the performance of a trigger be improved?
How do I run a sql query?
What is difference between hql and native sql?
What are the types of queries in sql?
What is type and rowtype in pl sql?
What does count (*) do in sql?
What is sql mysql pl sql oracle?
What if we write return in procedure?
Mention what problem one might face while writing log information to a data-base table in pl/sql?
How do I make my sql query run faster?
Can we join same table in sql?