17,377
社区成员
发帖
与我相关
我的任务
分享
set serveroutput on
declare
Exception01400 EXCEPTION;
-- 初始化异常
PRAGMA EXCEPTION_INIT(Exception01400, -1400);
begin
insert into Excel_BaseCode(CodeNO) values (null);
exception
when Exception01400 then
dbms_output.put_line('主键不能为空');
end;