On 2017-08-15 23:06, [email protected] wrote:
MariaDB backend (but could be SQL Server too)
Given this trigger: UPDATE MyTable SET cItemID = new.cID WHERE
cItemID = old.cID
My question: will this trigger fire even if the old.cID = new.cID?
Or do I need to add to the WHERE clause something like "....and
old.cID <> new.cID"
My testing seems to indicate that I need to add the extra condition.
Makes total sense on re-thought. These triggers fire on just the
action, regardless of true change.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.