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
81486
February 05, 2007 04:41AM
40212
February 05, 2007 09:44AM
40985
February 06, 2007 01:16AM
42900
February 06, 2007 09:39AM
29417
February 07, 2007 05:22AM
16154
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.