2
我想問一下關於代碼相當於在SQL Server光標功能相當於在SQL Server
我工作的一個項目,其中我們將轉換UNIX批次由於數據庫遷移窗口批次。由於我在shell腳本和oracle的東西,我很難在Windows端工作。
我的問題是關於oracle sql使用的CURSOR。
有人可以幫助我轉換下面
sampleanimal.sql
以下示例查詢:
declare cursor getGM is
select dog as d, cat as c, fish as f
from animals
begin
for dr in getGM loop
UPDATE zoo
SET dogs = dr.d
cats = dr.c
fishes = dr.f
;
end loop;
end;
/
commit;
quit;