Richard Korts
asked on
MySQL timestamp data type
Based on what I've read of this, I'm guessing that if a timestamp is included as a field in a table & a record is inserted into that table, the value of the field is set to the then current date & time (server time) to the nearest second. I'm guessing that you DO NOT include any "value" for the timestamp field.
Of course I'm assuming I can report that value like a datetime.
Is this correct?
Thanks
Of course I'm assuming I can report that value like a datetime.
Is this correct?
Thanks
Sorry, missed the last bit there: yes, it functions basically as a DATETIME. Only key difference is that it'll convert from the defined local timezone to UTC for storage, and then back to the local timezone for retrieval.
ASKER
To slinkygn
So it will also modify the timestamp if I update the row?
I don't want that.
So it will also modify the timestamp if I update the row?
I don't want that.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As was stated in the link I included.
You can change that functionality a number of ways, though:
http://dev.mysql.com/doc/refman/5.0/en/timestamp-initialization.html