Eiolon Posted November 11, 2007 Share Posted November 11, 2007 I've been using DATETIME to store my dates and times in MySQL. Is there any reason why I should use TIMESTAMP over it besides it being 4 bytes compared to 8 bytes? Link to comment https://forums.phpfreaks.com/topic/76809-datetime-vs-timestamp/ Share on other sites More sharing options...
Rhysyngsun Posted November 11, 2007 Share Posted November 11, 2007 The problem with TIMESTAMP is that if you don't supply a value or pass null to it when updating/inserting it will use the current server time. Use datetime unless you want this automatic functionality. Link to comment https://forums.phpfreaks.com/topic/76809-datetime-vs-timestamp/#findComment-388923 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.