Oracle
 sql >> Database >  >> RDS >> Oracle

Seleziona in una tabella temporanea in Oracle

Allora forse devi fare qualcosa del genere:

declare
   type t_temp_storage is table of student%rowtype;
   my_temp_storage t_temp_storage;
begin
   select * bulk collect into my_temp_storage from student;
   for i in 1..my_temp_storage.count
    loop
    dbms_output.put_line('here I am '||my_temp_storage(i).stuid);
   end loop; 
 end;