create trigger trig_notic_UI
on notic for insert,update
as
update notic set memo=memo+'<dcboy>'
where id in(select id from inserted)
go
/*
trig_notic_UI 触发器名称 自定义
notic 需要触发的表名
memo 需要更新的字段
id 是主键
*/
on notic for insert,update
as
update notic set memo=memo+'<dcboy>'
where id in(select id from inserted)
go
/*
trig_notic_UI 触发器名称 自定义
notic 需要触发的表名
memo 需要更新的字段
id 是主键
*/
博客展示了一段SQL代码,创建了名为trig_notic_UI的触发器,用于在notic表进行insert或update操作时,更新memo字段内容。代码中还对触发器名称、触发表名、更新字段及主键等进行了说明。
1458

被折叠的 条评论
为什么被折叠?



