CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
6 个解决方案
#1
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;
CREATE SEQUENCE Increase_Sequence6
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
CACHE 10;
CREATE TRIGGER tri_update6 after
update of state ON leave_apply FOR EACH ROW
begin
select to_char(Increase_Sequence6.nextval) into:message(messageNum) from dual;
insert into message(content) values("同学你好,你的申请单"+:New.state)
insert into message(applyNum) values(leave_apply(applyNum))
insert into message(studentnum) values(leave_apply(studentNum))
insert into message(time) values(sysdate)
end;
commit
第一次发帖,本不愿做伸手党的,确实自己实力有限,谢谢——
CREATE or replace TRIGGER tri_update6
after update of state ON leave_apply
FOR EACH ROW
declare
i number;
begin
select Increase_Sequence6.nextval into i from dual;
insert into message
values
(i,
'同学你好,你的申请单' || :new.state,
:old.applynum,
:old.studentnum,
sysdate);
end;