Timestamp field

Discussion in 'MySQL' started by star2323, Mar 10, 2006.

  1. #1
    I use a timestamp field to track when a row was added to a table. Problem is if I update that row at a later time the timestamp is changed as well. I want to the timestamp to remain set to the time when the row was actually added not updated. Is this possible?
     
    star2323, Mar 10, 2006 IP
  2. star2323

    star2323 Peon

    Messages:
    445
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I figured it out. In MySQL version newer than 4.1.2 you can set timestamps to only change when created but with older version you can't. So I have to change my timestamp field to be a datetime field and insert the date and time manually.
     
    star2323, Mar 10, 2006 IP
  3. SpeedyDomainRegistration

    SpeedyDomainRegistration Peon

    Messages:
    170
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3