jlgdeveloper
Programmer
Hi All
This Oracle 8i stored procedure is valid:
(PK in number,
dt1 in date,
dt2 in date,
amount out number
)
is
begin
select sum(conf_numb8) into amount
from csh_main
where fk_str_main_id = PK
and (busi_date >= to_date(dt1))
and (busi_date <= to_date(dt2));
end;
My issue is calling it:
This sql plus statement:
CALL cwsr_sel_net_sales (101, '03-Nov-03' , '09-Nov-03');
produces this error:
ERROR at line 1:
ORA-06553: PLS-306: wrong number or types of arguments in call to
'CWSR_SEL_NET_SALES'
The sql statement that this is based on works well, and is:
select sum(conf_numb8) as amount from csh_main where fk_str_main_id = 101 and (busi_date >= to_date('03-Nov-03')) and (busi_date <= to_date('09-Nov-03'))
Any ideas on where I have err'd?
Thanks
Jonathan Galpin MCSD Õ¿Õ¬
because software should be easy to use
This Oracle 8i stored procedure is valid:
(PK in number,
dt1 in date,
dt2 in date,
amount out number
)
is
begin
select sum(conf_numb8) into amount
from csh_main
where fk_str_main_id = PK
and (busi_date >= to_date(dt1))
and (busi_date <= to_date(dt2));
end;
My issue is calling it:
This sql plus statement:
CALL cwsr_sel_net_sales (101, '03-Nov-03' , '09-Nov-03');
produces this error:
ERROR at line 1:
ORA-06553: PLS-306: wrong number or types of arguments in call to
'CWSR_SEL_NET_SALES'
The sql statement that this is based on works well, and is:
select sum(conf_numb8) as amount from csh_main where fk_str_main_id = 101 and (busi_date >= to_date('03-Nov-03')) and (busi_date <= to_date('09-Nov-03'))
Any ideas on where I have err'd?
Thanks
Jonathan Galpin MCSD Õ¿Õ¬
because software should be easy to use