Re: timestamp triggered only on update?

From: Date: Thu, 25 Jul 2002 22:44:42 +0000
Subject: Re: timestamp triggered only on update?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109619@lists.php.net to get a copy of this message
hehe.. ofcourse i ment: ...this will trigger both on insert and update. "Ragnar" <ragnar@chello.no> wrote in message news:20020725221905.6304.qmail@pb1.pair.com... > Maybe the wrong forum, but im giving it a try. > > Im used to for instance 2 columns in each table indicating when it was > created and when it was last updated: > > Changed_date > Registered_date > > In mysql it seems it is only possible to define a column as a timestamp, and > this will trigger both on insert and delete. Is it possible to define > changed_date to trigger only on update in mysql or do i have do give the > correct timestamp "manually" from php? > > Thanx > > -R > >

« previous php.general (#109619) next »