MySQL auto-store datetime for each row

后端 未结 7 449
醉话见心
醉话见心 2020-12-04 11:33

In MySQL, I\'m sick of adding the columns dt_created and dt_modified (which are date time stamps for creation and last modified respectively) to al

相关标签:
7条回答
  • 2020-12-04 12:01

    Similar question was asked here "Timestamp for MySQL" the timestamp field will update every time it is accessed. You might also consider a Trigger placed on the table in question to automatically populate those fields for you. Depending on the environment some shops/businesses do not like the use of triggers and so you might have to find alternate work arounds.

    0 讨论(0)
提交回复
热议问题