-1
create or replace procedure UPD_DEP
(dd_name in dept.dname%type, --department which has to be updated
d_name in dept.dname%type) --name to which the first parameter has to be updated
is
abc_exception exception;
begin
if (dname<>dd_name) THEN
raise abc_exception;
end if;
update dept
set dname=d_name
where dname=dd_name;
commit;
EXCEPTION
WHEN abc_exception THEN
dbms_output.put_line('department not present which u want to be updated');
end upd_dep;
錯誤:PL/SQL:語句忽略PL/SQL異常在管線9與程序處理
- 7如果(DNAME <> dd_name)THEN(第7行)
- 8加註abc_exception; (第8行)
- 9 end if; (第9行)
- 10更新部門(第10行)
- 11組DNAME = d_name(第11行)
請使用大括號按鈕來設置您的問題的格式。 – gbn 2011-05-08 13:07:54