Re: mySQL Standardwert bei DateTime
am 02.06.2005 20:59:35 von Joerg Behrens
"Erik Griffin" <1f4e5381573d4a9c00e0b61302a4167f@nurfuerspam.de> schrieb im
Newsbeitrag news:429F4389.3000308@nurfuerspam.de...
> Hallo!
>
> Kann man beim Definieren einer Tabellenstruktur mySQL klar
> machen, das der Standardwert bei Feld a vom Typ DateTime
> das aktuelle Datum+Uhrzeit sein soll?
>
> Wenn ja wie?
Hier ist eine PHP Newsgroup. Schau im Mysql Manual deines Vertrauens nach.
"This means, for example, that you cannot set the default for a date column
to be the value of a function such as NOW() or CURRENT_DATE. The exception
is that you can specify CURRENT_TIMESTAMP as the default for a TIMESTAMP
column as of MySQL 4.1.2."
Gruss
Joerg