What are main difference between Stored Procedure and
Functions.
Answer Posted / hemanth
1) functions are used for computations where as procedures
can be used for performing business logic
2) functions MUST return a value, procedures need not be.
3) you can have DML(insert, update, delete) statements in a
function. But, you cannot call such a function in a SQL query..
eg: suppose, if u have a function that is updating a table..
you can't call that function in any sql query.
- select myFunction(field) from sometable;
will throw error.
4)We can call a function from a procedure, but it is not
possible to call a procedure from a function
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
How can windows applications connect to oracle servers?
How to put more than 1000 values into an oracle in clause?
Can we create trigger on materialized view in oracle?
Difference between open_form and call_form in oracle.
Explain database link?
what are bitmap indexes? How does they work?
Explain a synonym?
How to delete an existing row from a table in oracle?
Explain oracle instance.
nw i'm doing MBA system and planning to do oracle,database management.tell me that whether it is useful r not?.refer any course for my carrier pls
In what script is snap$ created? In what script is the scott/tiger schema created?
How to login to the server without an instance?
What to do if the binary spfile is wrong for the default instance?
How to create a table in a specific tablespace?
Which environment variables are absolutely critical in order to run the OUI?