how do u call in & out parameters for stored procedures?
Answer Posted / ajit
create or replace procedure P_io ( I_num1 number,
o_num2 out number,
io_num3 in out number
)
is
begin
io_num3 := io_num3 + i_num1;
o_num2 := io_num3;
end;
/
Call this store procedure
--------------------------
declare
a number := 3;
b number;
c number := 7;
begin
P_io ( a, b, c);
dbms_output.put_line ( a||' '||b||' '||c);
end;
/
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are the different type of normalization? : Sql dba
How do I copy a table in sql?
What is secondary key?
What is ttitle and btitle?
how many sql dml commands are supported by 'mysql'? : Sql dba
Mention what does plv msg allows you to do?
How can you create an empty table from an existing table?
How to fix oracle error ora-00942: table or view does not exist
What are sql*plus environment variables?
What does select * from mean in sql?
Is it possible to link two groups inside a cross products after the cross products group has been created?
what is the command line end user interface - mysql? : Sql dba
Can we use insert statement in function?
Can a key be both primary and foreign?
How to connect a sql*plus session to an oracle server?