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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.