请教1条触发器 我想通过触发器实现1条语句:当字段里的时间小于当前时间时则状态改为超时请问下该怎么写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 create trigger replacestarton tbafter insert,updateasbeginupdate tb set 状态='超时' from tb a inner join inserted b on a.id=b.id where b.时间<getdate()end SQL Server:定时作业的设置方法 sql2008添加数据库问题 半夜醒来结贴!!! 列名无效错误,请高手们指引迷津 倒霉的事让我碰上了,请各位大侠诊断一下. SQL Server 2000--我困惑,我迷茫!求助! 用ADO访问SQL SERVER(菜鸟问题) 关于《餐饮管理》数据库问题,连载 sql server business intelligence development studio 存储过程给怎么写? 紧急求救有关Oracle的问题!!!!!(300) sql查询 问一个关于临时表的问题 ,请大虾进来帮忙
on tb
after insert,update
as
begin
update tb set 状态='超时' from tb a inner join inserted b on a.id=b.id where b.时间<getdate()
end