You are here: setting default date column to NOW() « PHP SQL « IT news, forums, messages
setting default date column to NOW()

Posted by laredotornado on 10/21/05 05:15

Hello,
I am running MySQL 4. I was curious, how do you make the DATE or
TIMESTAMP column's default value whatever the time was that the row was
created. I would prefer not to specify the "NOW()" function in my
INSERT statement, but rather would like to have that automatically
happen upon new row creation.

Is it possible?

Thanks, - Dave

 

Navigation:

[Reply to this 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

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