create or replace trigger trig_update_task
before update on 任务表
for each row
declare
-- local variables here
begin
if :new.任务状态=5 then
delete FROM 任务表 where ID=:new.ID;
end if;
end trig_update_task;
before update on 任务表
for each row
declare
-- local variables here
begin
if :new.任务状态=5 then
delete FROM 任务表 where ID=:new.ID;
end if;
end trig_update_task;
解决方案 »
- 急求,如何查找已删除的数据sql语句
- oracle8i 字符集 由 中文 转换为 英文后 ,为何数据库倒出出现如下错误????
- 求一解决方法!~~~~~~~~~~~~~
- 想把传过来的日期还有时分。都拼成一个日期,插入数据库中
- 还是ORACLE 9i RMAN备份问题,想请大虾给予帮助!
- 关于ORACLE安装的问题,急呀!
- 如何将备份的MDF文件导入新装的oracle中
- 请问在字段是否相等的比较时候,空值和空值能否相等,如果不想分开判断,能不能有简单的语句实现这种相等的判断呢
- 那位老兄能给一个建序列的例子,万分感谢!
- 一个关于日期的问题
- 為什麼 select * from dba_tables 能查到數據,但是select * from dba_tables where table_name like 'a%却返回沒有任何資料列被選取呢?
- 怎么样让Oracle中的函数或者过程返回记录集或者表格
after update on 任务表
declare
-- local variables here
begin
delete FROM 任务表 where ID=5;
end trig_update_task;
after update on 任务表
declare
-- local variables here
begin
delete FROM 任务表 where ID=new.id; --这样只能删除一行,你可以做个游标
end trig_update_task;