can we call a procedure into another procedure?If yes means
how you can pass the perameters for the two procedures?

Answers were Sorted based on User's Feedback



can we call a procedure into another procedure?If yes means how you can pass the perameters for t..

Answer / madhuri

We can call a procedure into another procedure.

create or replace procedure proc1(empno number) is
begin
proc2(20,'CLERK');
end;

When we execute proc1 as follows
exec proc1(7891);

it will execute proc1 and proc2 as well

Is This Answer Correct ?    7 Yes 6 No

can we call a procedure into another procedure?If yes means how you can pass the perameters for t..

Answer / swapna

while creating a procedure body we can call other procedure
in that body

for example if your creating the procedure body p1 we can
call the procedure p2 in the procedure body p1

syntax

create or replace procedure p1(a number) is
b number;
begin
p1(10);-- calling first procedure
end;
when you execute procedure p1
exec p1(10) -- it will execute both p1 and p2

Is This Answer Correct ?    9 Yes 9 No

Post New Answer

More SQL PLSQL Interview Questions

What are the 3 modes of parameter?

0 Answers  


How do I know if I have sql express or standard?

0 Answers  


What is relationship? How many types of relationship are there?

0 Answers  


how can we find the number of rows in a table using mysql? : Sql dba

0 Answers  


How do you declare a variable in pl sql?

0 Answers  






What is partition by in sql?

0 Answers  


How can we find duplicate records in a table?

0 Answers  


What is an index and types of indexes. How many number of indexes can be used per table ?

12 Answers   Accenture, BirlaSoft, Cognizant, CTS, Symphony,


How to combine two stored procedures in sql?

0 Answers  


Why do we use %rowtype & %type in plsql?

0 Answers  


Why do we create views in sql?

0 Answers  


What is pragma in pl sql?

0 Answers  


Categories