MySQL Forums
Forum List  »  Performance

Re: Pre-DML trigger vs Foreign keys
Posted by: Rick James
Date: June 23, 2012 05:18PM

<opinion>
A database is a data store, not a programming language. Do not but that much "business logic" in a trigger.

That is, you are both wrong. Use PHP (or whatever), not FKs, Triggers, SPs, etc.

Build an interface to the database; have it do the testing. Use MySQL for the values, not for the logic.
</opinion>

Options: ReplyQuote


Subject
Views
Written By
Posted
1053
June 23, 2012 01:56PM
Re: Pre-DML trigger vs Foreign keys
1117
June 23, 2012 05:18PM


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.