代码如下,如果insert的physicalpath为空,那么就把physicalpath设置为XXX
create or replace trigger update_physicalpath
--创建触发器
before insert
--insert 前
on filetree
--insert into 表 filetree
for each row
begin
if (:new.physicalpath is null) then
--new表示要插入的新值
:new.physicalpath := 'D:档案系统附件File';
--赋值
END if;
end update_physicalpath;
其他语法详情:https://www.cnblogs.com/sharpest/p/7764662.html
最后
以上就是追寻小海豚最近收集整理的关于Oracle——trigger(触发器)before insert的全部内容,更多相关Oracle——trigger(触发器)before内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复