大概要完成的功能就是将这个表(temp)得到的内容分别插入到其它的表,然后将temp表的内容删掉
create trigger insert_trigger
after insert on noticetemp
for each row
begin
insert into notice(NoticeID,NoticeTitle,Editor,Date) select NoticeID,NoticeTitle,Editor,Date from noticetemp;
insert into noticeindex(ClassID,NoticeID) select Class,NoticeID from noticetemp;
insert into noticedetail(NoticeID,NoticeText) select NoticeID,NoticeText from noticetemp;
delete from noticetemp;
end;
结果如图,总是提示错误找不到原因,求大手们指教下子,麻烦了
Copyright © 2019- bfxh.cn 版权所有
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务