472,118 Members | 1,216 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,118 software developers and data experts.

Auto Date in table

I have a mysql table, with a field called DATE, how do i get it to
automatilly put the date on it every time a new recored it put on the
table

Date and time would be good,
Tahnks

Jan 9 '07 #1
2 14583

S.*******@shos.co.uk wrote:
I have a mysql table, with a field called DATE, how do i get it to
automatilly put the date on it every time a new recored it put on the
table

Date and time would be good,
Tahnks
Have a read through the user comments posted at

http://dev.mysql.com/doc/refman/5.0/...functions.html

Jan 9 '07 #2
S.*******@shos.co.uk wrote:
I have a mysql table, with a field called DATE, how do i get it to
automatilly put the date on it every time a new recored it put on the
table
You can do this automatically with the TIMESTAMP datatype, but not with
the DATE datatype.

Read the documentation about TIMESTAMP:
http://dev.mysql.com/doc/refman/5.0/...stamp-4-1.html

Regards,
Bill K.
Jan 9 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dave | last post: by
3 posts views Thread by www.ttdown.com | last post: by
1 post views Thread by daniellee2006 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.