Skip to content
Advertisement

Tag: triggers

Possible for a MySQL trigger to silently fail?

I’m pulling my hair out trying to debug something. We have large raw tables where ecommerce data gets added to at high. We have summary tables that are populated via insert, update, and delete triggers which are used when users query from our UI. So, those two tables should “match” which is to say if, for example, SUM(revenue) from the

SQL Server: log database changes through generic trigger

Starting from this article, which is creating a trigger to log insert-, update- and delete-statements within the database, I’d like to create a similar trigger which doesn’t require to define the table and its columns. This would us to reduce human errors when dropping or adding columns. I’ve had many issues (hence the extra code compared to the article) but

Advertisement