Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update time required

Status
Not open for further replies.

ssphoenix

IS-IT--Management
Jan 22, 2001
306
US
Hi fellows,

I need to find a way to place a field based on the update date.

For example, other properties will modify their own table and when they do, we need to know when was this modified. I'd like to place a field at the end of the table showing when the table was updated. don't have a clue where to start with this one.

Thanks in advance


 
maybe this is too easy:
o create an extra field in your database, eg 'LASTCHANGED'
o Use the date() and time() function to fill a variable just before your UPDATE-statement
o Use that variable to in your UPDATE-statement to update the 'LASTCHANGED' field.










br
Gerard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top