Results 1 to 5 of 5
Aug 24, 2013, 12:22 #1
- Join Date
- Aug 2010
- 2 Post(s)
- 0 Thread(s)
timestamp data type looks like a date time
For a 'date_added' column, I thought it was always better to use a datetime data type instead of timestamp.
In MySql 5.0 I read there is no default if you use the datetime data type ( is that true? ). I want a default, so I switched to timestamp datatype. Which looks to be stored as a date time. I made 1 test record and the results of a default, in a timestamp data type is: 2013-08-24 13:16:12.
Does all of this sound correct? A timestamp data type saves this 2013-08-24 13:16:12, instead of the timestamp I expected i.e. 10982304982039482