Menu

#289 CURRENT_TIMESTAMP on create only

closed-works-for-me
MySQL (74)
5
2013-01-12
2012-12-30
No

There should be a way to choose, to have the CURRENT_TIMESTAMP inserted into column only on row create, not update.

Discussion

  • Jakub Vrána

    Jakub Vrána - 2013-01-12
    • status: open --> closed-works-for-me
     
  • Jakub Vrána

    Jakub Vrána - 2013-01-12

    Just set the default value of timestamp column to CURRENT_TIMESTAMP (instead of default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.