Oracle存儲過程中游標For循環使用

   procedure copy(a_id int) is

    cursor t_cursor is
      select * from table f where f.id = a_id;
  
   v_row table%rowtype;

begin

  for v_row in t_cursor loop

    -- 處理數據

  end loop;

end copy

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章