CouponPages
Programmer
We all know that if a user intends to update (or delete) a single record, but leaves out the WHERE clause by mistake, every record in the table is updated (or deleted).
Like most programmers, I use a test environment before making any major code changes, so it's never happened on live data, but does anyone know a uniform way to put a trigger or constraint in that can prevent it?
I've considered all sorts of hacks, but has anyone got a practical solution?
Like most programmers, I use a test environment before making any major code changes, so it's never happened on live data, but does anyone know a uniform way to put a trigger or constraint in that can prevent it?
I've considered all sorts of hacks, but has anyone got a practical solution?