日期:2014-05-17 浏览次数:20779 次
CREATE TRIGGER TCMap ON dbo.tblGameID1
for update AS
if update(Map)
begin
declare @m int
declare @s int
declare @i varchar(14)
select @i=i from news
select @s=s,@m=m from news where i = @i
if (@s>1000 AND @m=2)
begin
update news set t = 21,c = 100,y=100 where i = @i
return
end
end