のアレイ・サイズに制限されますので注意してLINQ to SQLのを使用することができます私は間違っている)。 Oracle側からは、次のようなことがあります。
create or replace package my_package as
...
type t_id_tab is table of my_table.id%type index by pls_integer;
...
procedure do_work(i_ids in t_id_tab);
...
end my_package;
create or replace package body my_package as
...
procedure do_work(i_ids in t_id_tab, o_affected_cnt out number) is
begin
forall i in i_ids.first..i_ids.last
-- do something useful here, for example
insert into some_table(col1, col2, col3)
select col1, col2, col3 from some_other_table
where id = i_ids(i);
o_affected_cnt := SQL%ROWCOUNT;
commit;
end;
end my_package;
この記事はどのように役立ちますか? –