45fan.com - 路饭网

搜索: 您的位置主页 > 网络频道 > 阅读资讯:解决ORACLE中抛出异常问题的方法

解决ORACLE中抛出异常问题的方法

2016-09-03 07:19:36 来源:www.45fan.com 【

解决ORACLE中抛出异常问题的方法

create or replace trigger Tri

before insert or update on do_enterprotocol

for each row

declare

-- local variables here

roomsn varchar(20);

cnt integer;

begin

/*

功能:用于控制************ 作者:高飞龙

编写日期:2005.9.1

*/

select nvl(count(*),0) into cnt fromA where sn = :New.ID;

if cnt = 0 then

RAISE_APPLICATION_ERROR(-20999,'非法的');

end if;

end TRI;

 

本文地址:http://www.45fan.com/a/question/71572.html
Tags: oracle 异常 抛出
编辑:路饭网
关于我们 | 联系我们 | 友情链接 | 网站地图 | Sitemap | App | 返回顶部