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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use of Timestamp

Status
Not open for further replies.

tapks

IS-IT--Management
Sep 6, 2001
72
IN
Hi!

How to use timestamp in the table? What is the advantages of the use? Can I get some samples or sites from when I can get info on it.

Thanks in advance
Tapks
 
TIMESTAMP data type is meant for tracking updates/inserts into a table. It is an automatically generated binary piece of data that is unique within a given table. It can not be used to indicate time or datetime as its name may imply.

There can only be ONE timestamp column within a table.

You can use it to know what row has been updated or inserted last. A row with the maximum value in the timestamp column is the last row to be updated...
 
Thanks for the answer. Can I get some URL or example from where I can get some more info on it.
 
Also, SQL ships with SQL Books Online. Great resource for finding info on sql. You can search it on any subject you like....It is normally installed at Start->Programs->Sql Server->Books Online.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top