What are main difference between Stored Procedure and
Functions.
Answer Posted / abhirup roy
In The above answers all the major differences have been disclosed, with one wrong information.
We can call a procedure from a function and vice-versa (as long as the function and procedure has same/similar scope).
In order to defend my point I am posting one small code below for reference.
DECLARE
PROCEDURE my_proc;
FUNCTION my_func RETURN NUMBER IS
BEGIN
my_proc;
RETURN -003;
END my_func;
PROCEDURE my_proc IS
BEGIN
DBMS_OUTPUT.PUT_LINE('22');
END my_proc;
BEGIN -- main
DBMS_OUTPUT.PUT_LINE(my_func);
END;
-- IT WILL WORK FOR EVERY OCCURRENCE --
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is dynamic SGA and static SGA
State all possible different index configurations a table can possibly have?
What is define in oracle?
In oracle there is column command, how will you explain that?
What is the dynamic sql in oracle?
What is meant by an index?
How will you differentiate between varchar & varchar2?
What is the difference between postgresql and oracle?
What are the attributes of the cursor?
Which is better Oracle or MS SQL? Why?
Explain the use of indexes option in exp command.
How to define an oracle cursor variable?
How to connect to the server with user account: sys?
What is a schema in oracle?
What is oracle and what are its different editions?