default unix time

vanderv
Дата: 21.01.2013 22:30:17
Как выставить дефолтное значения unix time текущего времени.
UNIX_TIMESTAMP() - выдает ощибку "Invalid default value for 'registration_date'"
miksoft
Дата: 21.01.2013 23:01:03
для поля какого типа?
vanderv
Дата: 21.01.2013 23:29:47
int(11)
miksoft
Дата: 21.01.2013 23:58:43
http://dev.mysql.com/doc/refman/5.5/en/data-type-defaults.html
The DEFAULT value clause in a data type specification indicates a default value for a column. With one exception, the default value must be a constant; it cannot be a function or an expression. 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. See Section 11.3.5, “Automatic Initialization and Updating for TIMESTAMP”.