Reply to Re: phpmyadmin/MySQL - dynamic date field?

Your name:

Reply:


Posted by Joshie Surber on 04/24/06 03:14

> Is there a way to set up a date field, Last_Update, that would
> automatically update to today's date any time a record was added or
> changed using phpmyadmin?

Simply use the MySQL field type of "TIMESTAMP" and set it to null on
any updates to the table... TIMESTAMP fields are automagically set to
the current time when the value passed to it is null.

PS this post should actually be on comp.databases.mysql. I don't care
much but some people in usenet are real pricks about stuff like this.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация