引发错误,防止 MySQL 触发器中的表更新
本教程将介绍引发错误,防止 MySQL 触发器中的表更新的处理方法,这篇教程是从别的地方看到的,然后加了一些国外程序员的疑问与解答,希望能对你有所帮助,好了,下面开始学习吧。
问题描述
If I have a trigger before the update on a table, how can I throw an error that prevents the update on that table?
解决方案
Here is one hack that may work. It isn't clean, but it looks like it might work:
Essentially, you just try to update a column that doesn't exist.
好了关于引发错误,防止 MySQL 触发器中的表更新的教程就到这里就结束了,希望趣模板源码网找到的这篇技术文章能帮助到大家,更多技术教程可以在站内搜索。