update time

  • I am capturing system date when a new row is inserted with getdate() function, how can I update the date when the row is updated.

  • use a trigger

     


    * Noel

  • you can an update trigger as suggested by noel or if you prefer you can use the update statement when you are updating your data to just update the date value.


    Everything you can imagine is real.

  • Yes, but if you rely on people to remember to update the update column, it won't be updated every time. An update trigger is the best solution.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply