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

Field to populate with current system Date and Time

Status
Not open for further replies.

jestrada101

Technical User
Mar 28, 2003
332
How can I populate a field with current system date and time? Is there an option to automatically populate this when a record is inserted?
 
insert into table field1,field2,datefield values ('data','data2,NOW())....

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
you can also create a column "timestamp not null" and it will always update with a unix timestamp when you update that record.

***************************************
J. Jacobs
 
ggggus is right, timestamp will automatically update for every insert or update, except it doesn't use unix numbers :)

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top