what is difference between procedure and function
Answer Posted / aditi yadav
in addition to above answers -
1. Functions can be called inside procedure but procedure cannot be called inside functons.
2. Functions compiled every time when we call them whereas procedure compiles only once & can be called again and again without being compiled.
3. we can user functions in select statement but cannot use procedure.
4. Inside function we cannot user DML commands but inside procedures we can use DML commands.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between table and view?
Can we group by two columns in sql?
Can we perform dml on view?
Does asenumerable execute the query?
What are the subsets of sql?
How do I find duplicates in a single column in sql?
Describe types of sql statements?
how to include character strings in sql statements? : Sql dba
What is the difference among union, minus and intersect?
What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql
How show all rows in sql?
What is snowflake sql?
Can we have two clustered index on a table?
How many types of privileges are available in sql?
Is crud a cuss word?