ALTER TRIGGER test_Rate  ON dbo.tRate
FOR insert 
AS      
declare  @errno   int,  @errmsg  varchar(255)  
 begin       
UPDATE dbo.tRate
SET vcUpdaterId=Inserted.iAutoId
FROM  dbo.tRate, inserted 
WHERE dbo.tRate.iAutoId= inserted .iAutoId  
  end      
return  
error:  
    raiserror @errno @errmsg  
    rollback transaction

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案