修改 MySQL 触发器
我有一个 MySQL 触发器,我想修改它。唯一的变化是触发器主体。
更新 INFORMATION_SCHEMA.TRIGGERS
中的 ACTION_STATMENT
列就足够了吗?这是更新触发器的正确方法吗?具体来说,我正在寻找这样做可能出现的任何问题。
I have a MySQL trigger that I would like to be modified. The only changes are in the trigger body.
Will updating the ACTION_STATEMENT
Column in INFORMATION_SCHEMA.TRIGGERS
suffice? Is this the right way to update a trigger? Specifically, I am looking for any problems that might arise by doing this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
那是行不通的。
您需要删除触发器并重新创建它。
http://dev.mysql.com/doc/refman/5.1 /en/create-trigger.html
That won't work.
You need to drop the trigger and recreate it.
http://dev.mysql.com/doc/refman/5.1/en/create-trigger.html
下载 dbForge Express(与 Beer 一样免费)。
与之连接并编辑触发器。
下载页面
http://www.devart.com/dbforge/mysql/studio/download。 html
直接链接
https://www.devart.com/dbforge/mysql/studio/dbforgemysql80exp。 exe
不要在 information_schema 中乱搞。
哦,不要使用 MySQL Workbench 5.2,我已经让那个人吃掉了我的工作两次(..消失了..),再也不会了。
不,我没有股份,只是一个快乐的 dbForge 用户
Download dbForge express (is free as in Beer).
Connect with that and edit the trigger.
Download page
http://www.devart.com/dbforge/mysql/studio/download.html
Direct link
https://www.devart.com/dbforge/mysql/studio/dbforgemysql80exp.exe
Don't muck about in the information_schema.
Oh and don't use MySQL workbench 5.2 I've had that one eat my work twice (..gone..) never again.
No I don't have shares, just a happy dbForge user
你是对的,如果你编辑 ACTION_STATEMENT 字段,即可修改 SQL 操作。
You're right, if you edit the ACTION_STATEMENT field, you modify the SQL action.