限制表的记录条数 可以啊,用触发器,before insertselect count(*)into num from table;if num>1000 then raise_application_error(-20012,'');end if 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 create trigger tab_tribefore insert on tabfor each rowdeclarejj exception;num number;beginselect count(1) into num from tab;if num>=1000 thenraise jj;end if;end;/ 在ORACLE中设置,不是用SQL语句 登录oracle directory manager时提示服务器未启动和运行 谁有oracle10g 的序列号 产品号 密码? 请问这个表该如何设计 向大家请教一个问题 求助字符串截取sql? 谁能帮我编写这个啊? 又一个asp+sql的超菜问题!! 超简单:数据列的名称为firstname和lastname怎么翻译? oracle 的日期类型怎么用SQL添加,修改 求sql语句 用哪个命令来分析SQL语句的执行效率? 请问在win98环境下装了oracle客户端,用DBA可以连到远程的数据库,而
before insert on tab
for each row
declare
jj exception;
num number;
begin
select count(1) into num from tab;
if num>=1000 then
raise jj;
end if;
end;
/