触发器
来源:互联网 发布:网络销售金融是什么 编辑:程序博客网 时间:2024/06/08 08:56
alter trigger t_tb on tb for update
as
if(update(次数_天数))
begin
--update tb set 次数_天数='22' where autoid='1'
select autoid from deleted
end
create trigger tri_os on 表名 for update,delete
as
if exists(select 1 from inserted) and exists(select 1 from deleted)--修改时
begin
--.........
end
if not exists(select 1 from inserted) and exists(select 1 from deleted)--删除时
begin
--.........
end
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- 触发器
- JS之正则表达式验证URL
- WEB项目前期开展需要注意的问题
- 数据库SQL树
- 【转】进度条的使用(设置值,改变颜色)
- 安装单服务器版的Team Foundation Server
- 触发器
- Explaining: "Warning: RPMDB altered outside of yum."
- Suds McKenzie 另类的塔防游戏,上演一出有趣的肥皂剧?
- gimp里处理图像背景(透明背景)方法之一
- SUSE 上搭建SVN & 移动版本库
- 两种SVN开发模式实现目录结构布局
- DataLis绑定图片无缝滚动
- Android Signing your Applications
- Java课程设计题目