Re: MySql: Default values

From: Date: Tue, 10 Apr 2001 17:06:37 +0000
Subject: Re: MySql: Default values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48054@lists.php.net to get a copy of this message
on 4/10/01 7:23 PM, elias at elias_bachaalany@yahoo.com wrote: > Can a default field value in MySql be a function? no. > Like default value of a date field should be the built-in function NOW()? still, nope. > anything like what i'm asking for? ahhh- if you are looking for a way to automatically have a timestamp inserted into a record, make a new field of type timestamp that is not null. if you don't insert any value into the timestamp field it will use the current date-time. have a great day andy -- ******************************************************* Andrew Rush :: Lead Systems Developer :: MaineToday.com ******************************************************* "A friend of the devil is a friend of mine" - R. Hunter

« previous php.general (#48054) next »