MySQL Forums
Forum List  »  Triggers

Re: Create a trigger that prevents updating all rows in a table
Posted by: Peter Brawley
Date: August 29, 2017 02:12PM

The bug is in your own software? You could have your app log all Update cmds, and you'll soon find the problem code. It's hard to imagine that method failing.

If that does fail for some reason (I'd love to know how it does!), MySQL Triggers do not have the SQL Server feature you describe, but you might get close to it by querying information_schema.tables for when the `emails` table's update_time is now(), and make your correcting update accordingly.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Create a trigger that prevents updating all rows in a table
206
August 29, 2017 02:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.