how do u call in & out parameters for stored procedures?

Answer Posted / soujanya

See the example below...

create or replace procedure addn(a in number,b in number, c
out number)
is
begin
c:=a+b;
dbms_output.put_line(c);
end addn;

Now we can call the in and out parameters as

declare a variable for the out parameter as

var n number;
exec addn(5,10,:n);
print n;

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many disk partitions should I have?

719


What is recursive stored procedure?

812


a table has 2 classifications 1)liabilities 2)earnings this liabitity has 2 elements with 2 input values and the earnings have 2 elements with 2 input values i wrote a query so that my input is liability savings amount1 amount2 xxxx null xxxxxx 0 xxx1 null xxxxx1 0 null yyyy 0 yyyy null yyy1 0 yyy1 my problem is --when i developed a report(d2k) with this data my o/p is liabilities,amount1,savings,amount2 xxxx xxxxxx xxx1 xxxxx1 yyyy yyyy yyy1 yyy1 how could i move this savings,savings values 2 palces up. can any body provide me witha better solution

1949


What packages are available to pl/sql developers?

811


Explain the uses of control file.

773






How much does sqlite cost?

724


What is function and procedure in pl sql?

702


When sql appeared?

815


What is an exception in pl/sql?

725


Does mysql support pl sql?

811


how to convert character strings to dates? : Sql dba

716


How you improve the performance of sql*loader? : aql loader

752


What is recursive join in sql?

752


What is java sql package?

735


what is 'mysqladmin' in mysql? : Sql dba

744