Update timestamp column in Application or Database?
问题 I have date_created and date_modified columns on each table in database. What are advantages/disadvantages setting timestamp columns at database using MySQL triggers vs setting them at application layer using PHP? Which is easier to maintain and have better time synchronization when deployed across on many servers? EDIT: since Johan suggested setting timestamps in database is good, are these correct implementations? additionally, is it good practice to have date_created and date_modified on