且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

选择进入Oracle中的临时表

更新时间:2023-02-03 16:18:58

然后,您可能需要执行以下操作:

Then perhaps you need to do something like this:

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;