我的表为 create table temp(n number);
我的触发器为 create or replace trigger temp_air
after insert on temp
for each row
begin
dbms_output.put_line('afssaf');
end;
/
可是不知道为什么我在执行insert的时候这个触发器没有反应
我的触发器为 create or replace trigger temp_air
after insert on temp
for each row
begin
dbms_output.put_line('afssaf');
end;
/
可是不知道为什么我在执行insert的时候这个触发器没有反应
新建一个表把结果插入到表中.另:触发器中不允许使用commit,触发器的内容会随着主操作自动提交或回滚.
什么意思啊
我的那个触发器为什么没有反应?
谢谢
如果是用sql*plus worksheet看输出,你是否有开SET SERVEROUTPUT ON;啊?
ps:怎么设置SET SERVEROUTPUT ON;?
你要运行这句话,才有了使触发器运行的事件,触发器才会执行啊~~
为什么还是不对了
表为create table temp(n number);
我的触发器为 create or replace trigger temp_air
after insert on temp
for each row
begin
dbms_output.put_line('afssaf');
end;
/
怎么在insert的时候还是没有打印字符了。我只想要这样的效果,在插入的时候触发触发器啊。不需要insert into table_test values('OK');这个操作啊。难道我的理解有问题???
如果有插入的话,触发器是有反应.真的不能理解你