Table as Parameter
Posted: Wed 22 Jun 2011 11:45
Hi,
I have this package in Oracle:
create or replace
PACKAGE UPTSTP AS
type ids is table of number;
procedure load_ac(i in ids);
END UPTSTP;
create or replace
PACKAGE BODY uptstp AS
procedure load_ac(i in ids) is
BEGIN
FORALL indx IN 1..cardinality(i)
INSERT INTO test (val) VALUES (i (indx));
END;
END uptstp;
In CBuilder:
sql->SQL:
begin
uptstp.load_ac(:x);
end;
How should I set parameter "x" correctly?
I have this package in Oracle:
create or replace
PACKAGE UPTSTP AS
type ids is table of number;
procedure load_ac(i in ids);
END UPTSTP;
create or replace
PACKAGE BODY uptstp AS
procedure load_ac(i in ids) is
BEGIN
FORALL indx IN 1..cardinality(i)
INSERT INTO test (val) VALUES (i (indx));
END;
END uptstp;
In CBuilder:
sql->SQL:
begin
uptstp.load_ac(:x);
end;
How should I set parameter "x" correctly?