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
Is nosql faster than sql?
What is auto increment in sql?
Can one improve the performance of sql*loader? : aql loader
What is the syntax to add a record to a table?
What is compiled query?
How do you drop a trigger?
What is the use of index in sql?
Do prepared statements prevent sql injection?
What is a string data type in sql?
What is where clause in sql?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
How do I edit a stored procedure?
What is the difference between delete and truncate statement in sql?
What is meant by cursor in sql?
how to do backup entire database? : Transact sql