主键重复
?
如何根据oracle异常判断主键重复
?
exception?
? ?? ?when others then?
? ?? ?? ?? ?? ?err_num := SQLCODE;
? ?? ?? ?? ?? ?if err_num = 1 then
? ?? ?? ?? ?? ???dbms_output.putline(SQLERRM(err_num);
? ?? ?? ?? ???end if;
...
发布时间: 2012-09-01 09:33:02 作者: rapoo
主键重复
?
如何根据oracle异常判断主键重复
?
exception?
? ?? ?when others then?
? ?? ?? ?? ?? ?err_num := SQLCODE;
? ?? ?? ?? ?? ?if err_num = 1 then
? ?? ?? ?? ?? ???dbms_output.putline(SQLERRM(err_num);
? ?? ?? ?? ???end if;
...