我想在2代表在這裏給定的ID進行刪除操作使用遊標是須藤代碼在Oracle SQL
declare
cursor del_id is
select person_id from table_1 where termination is true
begin
for id_x in del_id
delete from table_X where id=id_x
delete from tabele_Y where id=id_x
如何做到這一點?我不能直接使用我的光標,請幫忙。 我只是嘗試打印本人身份證
begin
for id in del_id
LOOP
dbms_output.put_line(id);
END LOOP;
end;
收到此錯誤
Error report -
ORA-06550: line 11, column 3:
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
問題是什麼?你有錯誤嗎?一個錯誤的行爲?此外,這是您的確切,完整的代碼或一些您不能轉換成Oracle SQL的僞代碼? – Aleksej
'終止是真的'在Oracle中爲無效 –