http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.html
NOW()
(Which is either a string or a number depending on context)
mysql> SELECT NOW();
-> '1997-12-15 23:50:26'
mysql> SELECT NOW() + 0;
-> 19971215235026
Jerry Johnson
Web Developer
Dolan Media Company
>>> [EMAIL PROTECTED] 01/04/05 11:19AM >>>
Does anyone know the proper default value for a DateTime
Field in mySQL?
I tried using Now() and it converts it to: 0:00:00 0:00:00
Which is illegal value or call or something like that.
I want that to be triggered as the default datetime when
A record is added to the table rather than setting the
field's value within the query itself.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:141496
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54