PL SQL Table

Oracle

24/03/2004

BEM!!! PRECISO DESESPERADAMENTE DE UM EXEMPLO DE CÓDIGO
PL/SQL QUE USE UM ARRAY BIDIMENSIONAL que seria o PL SQL Table... ALGUÉM PODE ME
AJUDAR????? OBRIGADA... (é muito urgente!!!!)


Vi

Vi

Curtidas 0

Respostas

Rfpsatin

Rfpsatin

24/03/2004

c ta querendo um exemplo de bulk certo!
da uma olhada na doc do oracle no site da otn, lá tem bastante + por hora, veja se isso te ajuda

Essa é a dica:

ops$t_mp00@MRP920> 
ops$t_mp00@MRP920> declare
  2       type t_array is table of t¬rowtype index by binary_integer;
  3       tb      t_array;
  4       cursor c is select rownum rn, object_name from all_objects;
  5  begin
  6       open c;
  7       fetch c bulk collect into tb;
  8       forall i in 1..tb.count
  9       insert into t values tb(i);
 10       close c;
 11  end;
 12  /



ps. isso é no 9i, se vc estiver usando 8i nao há como usar isso, apenas a nível de coluna e nao de tabela.

t+


GOSTEI 0
POSTAR