I remember I read somewhere that mySQL timestamp data type is used to be updated automatically when the row updates, is this true?
Do I have to store timestamps with timestamp datatype or with bigint for example?
NB: the timestamp that has to be stored is not generated by mySQL, it's a pre-defined value that will be generated with PHP.
Thanks.
ok I think this is resolved.
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-types.html
a zero value timestamp looks like this '0000-00-00 00:00:00', so it can't be used to store a unix timestamp like this : 1309347278, so it must be BIGINT.
Thanks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With