469,625 Members | 1,078 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

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 14494

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 gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.