我想将此MS sql触发器转换为MySql.My问题是:
我不知道如何在MySql中添加相同的功能。以下是SQL Server Trigger code.please帮助。
CREATE TRIGGER [trigger_name]
ON [dbo].[table_name]
for INSERT,UPDATE NOT FOR REPLICATION
AS BEGIN
SET NOCOUNT ON;
if update(column_name)
Begin
Declare @SNo as varchar(50)
Select @SNo = SNo From inserted
IF Exists(Select * From inserted)
Begin
exec procedure_name @SNo
End
End
END