Its possible gets a created and updated time of one row directly with sql/mysql?
I know a method to got a table last update but i was wondering if there will be a quick natively way to do this with sql.
I made a way to do this creating automatically 2 fields in table(created_date and updated_date) but I decided to ask you first because there is probably a better way to do this.
I hear suggestions!
Thanks for help.
I don’t know of any way to do this without having two extra columns in the table – but what I do to update them is to have a database trigger do it rather than the application logic.
There are some benefits, but also some drawbacks to using a trigger approach.
Firstly, the benefits:
But some downsides too: