MySQL Forums
Forum List  »  InnoDB

default value for date field
Posted by: mahadev sawale
Date: February 05, 2007 04:41AM

hi frnds,
how can i set default value for the date field?
for example, i have a column
valid date;

when i try to set the default value like
alter table t modify column valid date not null default current_date;
it shows the errors;

i know timestamp works, but i want only date field.

thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
default value for date field
81668
February 05, 2007 04:41AM
40310
February 05, 2007 09:44AM
41075
February 06, 2007 01:16AM
42986
February 06, 2007 09:39AM
29514
February 07, 2007 05:22AM
16238
January 16, 2009 06:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.