【发布时间】:2017-11-29 00:21:48
【问题描述】:
我收到以下错误。你能帮我解决它吗
触发器
CREATE TRIGGER notifyMe
ON sb_clients
AFTER UPDATE
AS
exec msdb.dbo.sp_send_dbmail
@profile_name = 'DB AutoMailer',
@recipients = 'mail@mail.com',
@body = 'The DB has changed',
@subject = 'DB Change'
错误
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON sb_clients
AFTER UPDATE
AS
exec msdb.dbo.sp_send_dbmail
@profile_name = '' at line 2
【问题讨论】:
-
检查mysql参考dev.mysql.com/doc/refman/5.7/en/trigger-syntax.html看起来应该类似于
CREATE TRIGGER notifyMe AFTER UPDATE no sb_clients -
@bradbury9 我检查了它,但仍然不知道如何修复它。
标签: php sql triggers phpmyadmin