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

Creating Datetime field 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I am trying to create a datetime field in mysql that will simply record the time a record is created, so I do not want it to accept null, and when the record is created the default value will be the datetime, but I can figure out how to do the default value... I tried getdate() but that did not work.

any help?

[conehead]
 
Have you considered a timestamp() field in MySQL?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top