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!

DateTime Issue With MySQL 3.23

Status
Not open for further replies.

EnergyLevel

Technical User
Jul 27, 2001
7
GB
I'm trying to use datetime with a MySQL 3.23 DB to record the date that each record is created, I've tried creating a table using

`date` datetime NOT NULL default 'NOW()',
`date` datetime NOT NULL default 'CURRENT_DATE',
`date` datetime NOT NULL default 'CURRENT_TIMESTAMP',

Anyone an idea how to do this with MySQL 3.23 each time I tried the default value reverted back to 00-00-00 00:00:00 and the current date/time is not recorded when records are created \????


Thanks .....
 
Actually I don't want timestamp becauase the format is different to MySQL 4.1 and higher, I may be wrong but I thought timestamp updates each time a record is modified and I only want a creation date ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top