自己写的第一个SQLSERVER2005触发器
来源:互联网 发布:淘宝处罚考试 羽西美 编辑:程序博客网 时间:2024/05/23 19:19
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
alter TRIGGER tr_stuffUser
ON stuffUser
AFTER
insert,update
AS
if exists(select * from inserted)
begin
update stuffuser set firsttime=inserted.latestlogintime from inserted
where stuffuser.stuffuserid=inserted.stuffuserid and
(stuffuser.firsttime='' or stuffuser.firsttime is null);
end
update stuffuser set lasttime=inserted.latestlogintime from inserted
where stuffuser.stuffuserid=inserted.stuffuserid;
GO
- 自己写的第一个SQLSERVER2005触发器
- 自己写的第一个PHP作品
- 我自己写的第一个控件
- 写自己的第一个makefile
- 自己写的第一个shell脚本
- 自己写的第一个小网站
- 自己写的第一个model
- 第一个自己写的banner动画
- 第一个自己写的banner动画
- 记自己写的第一个批处理
- 动手写自己的第一个"操作系统"
- 自己写的第一个存储过程
- 自己写的第一个CasperJS
- 第一个自己写的小程序
- 自己写的第一个病毒(仿的)
- 我的第一个完全自己写的C程序
- puppet的第一个自己写的模块
- 自己写的第一个综合链表
- socket编程原理
- 用Socket接口实现网络异步通信
- 基于Socket的聊天室实现原理
- 将Socket应用程序从Unix向Windows移植中应注意的几点问题
- socket的工作模式
- 自己写的第一个SQLSERVER2005触发器
- Linux程式设计入门 - socket/inetd programming
- socket 的地址结构
- BSD Socket 简易入门手册
- 用Socket和MSHTML对象模型创建自己的浏览器
- 网络程序设计 Sockets
- 用纯粹的C++编写COM组件
- 探讨CtreeCtrl::SortChildrenCB
- 在VC++中使用斷言