By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,839 Members | 1,635 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,839 IT Pros & Developers. It's quick & easy.

mysql doing the date thing on its own

P: n/a
Hi all can mysql be queried so it finds and then adds the current date
to a field without requiring a php function to get the date for it?

May 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Sure, just read up on the UPDATE syntax

May 17 '06 #2

P: n/a
ED
"monomaniac21" <mc******@googlemail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi all can mysql be queried so it finds and then adds the current date
to a field without requiring a php function to get the date for it?


By 'add' I presume you mean just set the current date, in which case:

"UPDATE my_table set my_datefield = CURDATE()";

cheers,
ED
May 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.