📜  使用参数调用存储过程的 sql 触发器 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:56.429000             🧑  作者: Mango

代码示例1
DECLARE @OrderNumber NVARCHAR(150);
 IF EXISTS(SELECT * FROM INSERTED)
    BEGIN
    SELECT @OrderNumber=i.OrderNumber FROM inserted i;
     EXEC [dbo].[YOUR_STOREPROCEDURENAME]
          @InGuidKey = N'',
          @InParameter1 = '',
         @InParameter2 = '',
         @InDebugModeOn = N'0'
    END