1.student表
stu_id number
stu_applyTime
2。teacher表
t_id
stu_applyTime
3.当修改了student表中的stu_applyTime字段的值时。teacher表中相对应的值也改变
把触发器完整的代码留下。谢谢!
stu_id number
stu_applyTime
2。teacher表
t_id
stu_applyTime
3.当修改了student表中的stu_applyTime字段的值时。teacher表中相对应的值也改变
把触发器完整的代码留下。谢谢!
解决方案 »
- Oracle连接问题
- 求电子书Oracle9i Pro*C/C++编程指南
- oracle起动不了了,请大家帮看看日志是什么回事,谢了
- 非顺序插入表中 ROWNUM用来排序不准确
- 求大家帮忙看下怎么才能这个语句,语句运行没错误,但是有没有简单的写法
- 在winxp sp2上安装oracle9i服务器版添加监听出现的问题!
- 触发器的使用,请大家帮忙啊~~~~~~~~~~~~~~~~~~~~~~~~谢谢你们了!!!!!!!!!!!!!!!!
- Oracle的配置问题,请各位大狭多多指点!急!!!!!
- 合计问题,急呀
- 550万记录的表
- 怎么把一个字符串里面的内容逐个写到表里去呢?
- 系统警告说REDO LOG Writer经常时间长 经常200多ms
when (new.stu_applyTime<>old.stu_applyTime)
begin
update teacher set stu_applyTime=:new.stu_applyTime where stu_applyTime=:old.stu_applyTime and 关联字段;
end;
after insert or update
of stu_applyTime
on student
referencing old as "old_value"
new as "new_value"
for each row
declare
begin
update teacher tt set tt.stu_applyTime = :new where student.teacher_id not is null and tt.id = student.teacher_id ;
end updateJoinTime;这个是可以用的谢谢大家!!!